Can someone give me some advice? Thanks.

Shuang Liu

-----Original Message-----

Hi,

What happens if a wanted service in status deactivating (stop)?

For example, in the service A an ExecStop= is defined and takes 0.5s.
Then what should happen if a service B is started and A is WantedBy B during 
the 0.5s.

Concrete scenario is:
A USB device has defined the udev rule SYSTEMD_WANTS=A.service and is bind to 
B.device.
It works normally as expected:
        When connect the device, the A.service is started.
        When disconnect, the A.service is stopped.

However, if quick disconnect/connect the device (<0.5s), A.service stay in 
stopped and will not be restarted.
Probably when connecting, the service is in deactivating and the Wants will be 
hence ignored.

Best regards

Shuang Liu
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to