[systemd-devel] 回复: 回复: 回复: [systemd-de vel] systemctl can't execute stop actually,whenservice is started by other way

Reindl Harald h.reindl at thelounge.net
Fri Oct 27 10:48:19 UTC 2017



Am 27.10.2017 um 12:25 schrieb 清辰:
> When executing 'service xxx restart', actually systemd will execute 
> 'service xxx start', and then 'service xxx stop'.
> But my restart action is different from stop action, can I customize my 
> 'restart'?

no - fix the service

this sounds somehow as you have multiple things in a single service 
which should be splitted into several services with Before/After 
dependencies or even a own target


More information about the systemd-devel mailing list