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

Lennart Poettering lennart at poettering.net
Fri Oct 27 10:27:32 UTC 2017


On Fr, 27.10.17 18:25, 清辰 (624001899 at qq.com) wrote:

> 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'?

First of all, note that systemd does not actually provide a "service"
tool. It provides "systemctl", and your downstream distros map
"service" to "systemctl".

And no, in systemd we give the guarantee that restarts are equivalent
to stop+start, and you cannot customize that.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list