okay, thank you for your help very much.

------------------ ???????? ------------------
??????: Lennart Poettering <[email protected]>
????????: 2017??10??27?? 18:27
??????: ???? <[email protected]>
????: Oliver Neukum <[email protected]>, systemd-devel 
<[email protected]>
????: ???????????? [systemd-devel] ?????? ?????? [systemd-de vel] sys temctl 
can't execute stop actually,whenservice isstarted by other way



On Fr, 27.10.17 18:25, ???? ([email protected]) 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
_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to