[systemd-devel] systemctl how to stop a service

Reindl Harald h.reindl at thelounge.net
Sat May 14 10:32:37 UTC 2016


Am 14.05.2016 um 10:55 schrieb liuxueping:
> The result of "ps aux" before sleep 5 shows:
> root      6698  0.0  0.0      0     0 ?        Ds   08:45   0:00 [ntpd]
> After 5 seconds,there is no ntpd process in system.
>
> the stop status is 0,the execution of the stop command is successful,the
> PID of the ntpd process is 1.
>
> I would like to know if the systemctl command will wait for all the
> processes to exit completely before returning the result

no, not relieable, had much fun with maradb-backups

in case of restart it's different but "stop" is mostly a fire and forget 
coming back in the terminal whil the daemon is still at terminate 
gracefully - IMHO a bug



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20160514/41f236ac/attachment.sig>


More information about the systemd-devel mailing list