问题原文
原帖链接 · Kyle Brandt · CC BY-SA 3.0
Is the ExecStop directive in a unit file called when running systemctl restart ... or only when doing a literal systemctl stop ...?
已采纳解答
原帖链接 · Mobus Dorphin · CC BY-SA 4.0
In case anyone is searching for this later, this is now explained explicitly in the documentation:
Service restart requests are implemented as stop operations followed by start operations. This means that ExecStop= and ExecStopPost= are executed during a service restart operation.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
