<div>When executing 'service xxx restart', actually systemd will execute 'service xxx start', and then 'service xxx stop'.</div><div>But my restart action is different from stop action, can I customize my 'restart'?</div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "Lennart Poettering"<lennart@poettering.net>; </div><div><b>发送时间:</b> 2017年10月27日(星期五) 晚上6:15</div><div><b>收件人:</b> "清辰"<624001899@qq.com>; </div><div><b >抄送:</b> "Oliver Neukum"<oneukum@suse.com>; "systemd-devel"<systemd-devel@lists.freedesktop.org>; </div><div><b>主题:</b> Re: [systemd-devel] 回复: 回复: [systemd-de vel] systemctl can't execute stop actually,whenservice is started by other way</div></div><div><br></div>On Fr, 27.10.17 17:53, 清辰 (<a href="mailto:624001899@qq.com" target="_blank">624001899@qq<wbr>.com</a>) wrote:<br><br>> Hi, <br>> <br>> <br>> Where is the 'service xxx status' result stored? Or can I change the<br>> service status manually, when start / stop the service outside of<br>> systemd.<br><br>PID 1 maintains a per-service record in its internal memory. Only<br>PID 1 itself has write access to it.<br><br>Lennart<br><br>-- <br>Lennart Poettering, Red Hat<style type="text/css">.qmbox style, .qmbox script, .qmbox head, .qmbox link, .qmbox meta {display: none !important;}</style>