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'?
------------------ ???????? ------------------
??????: "Lennart Poettering"<lenn...@poettering.net>;
????????: 2017??10??27??(??????) ????6:15
??????: "????"<624001...@qq.com>;
????: "Oliver Neukum"<oneu...@suse.com>;
"systemd-devel"<systemd-devel@lists.freedesktop.org>;
????: Re: [systemd-devel] ?????? ?????? [systemd-de vel] systemctl can't
execute stop actually,whenservice is started by other way
On Fr, 27.10.17 17:53, ???? (624001...@qq.com) wrote:
> Hi,
>
>
> Where is the 'service xxx status' result stored? Or can I change the
> service status manually, when start / stop the service outside of
> systemd.
PID 1 maintains a per-service record in its internal memory. Only
PID 1 itself has write access to it.
Lennart
--
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel