Add the try-restart action similar to how LSB describes it. Many init scripts in Debian still does not support this action but fortunately even LSB just documents it as optional.
Fwiw, systemctl also supports try-restart action in the same fashion. --- policy.sgml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/policy.sgml b/policy.sgml index cb51a43..2fa250f 100644 --- a/policy.sgml +++ b/policy.sgml @@ -7538,6 +7538,10 @@ rmdir /usr/local/share/emacs 2>/dev/null || true <item>stop and restart the service if it's already running, otherwise start the service</item> + <tag><tt>try-restart</tt></tag> + <item>restart the service if it's already running, + otherwise just report success.</item> + <tag><tt>reload</tt></tag> <item><p>cause the configuration of the service to be reloaded without actually stopping and restarting @@ -7552,7 +7556,7 @@ rmdir /usr/local/share/emacs 2>/dev/null || true The <tt>start</tt>, <tt>stop</tt>, <tt>restart</tt>, and <tt>force-reload</tt> options should be supported by all scripts in <file>/etc/init.d</file>, the <tt>reload</tt> - option is optional. + and <tt>try-restart</tt> options are optional. </p> <p> -- 2.11.0