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

清辰 624001899 at qq.com
Fri Oct 27 10:25:31 UTC 2017


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"<lennart at poettering.net>; 
发送时间: 2017年10月27日(星期五) 晚上6:15
收件人: "清辰"<624001899 at qq.com>; 
抄送: "Oliver Neukum"<oneukum at suse.com>; "systemd-devel"<systemd-devel at 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, 清辰 (624001899 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20171027/04ca1789/attachment.html>


More information about the systemd-devel mailing list