From: Zbigniew Jędrzejewski-Szmek Date: Thu, 21 May 2020 12:05:40 +0000 (+0200) Subject: man: beef up $MAINPID examples X-Git-Tag: v246-rc1~287^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdf3c16d7576466b7cfa8e278e81da91cf3748ca;p=thirdparty%2Fsystemd.git man: beef up $MAINPID examples Inspired by https://github.com/systemd/systemd/pull/15400#discussion_r428537955. --- diff --git a/man/systemd.service.xml b/man/systemd.service.xml index 0cfd0853c6b..e8c869244a2 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -464,7 +464,7 @@ of the daemon, and may be used for command lines like the following: - /bin/kill -HUP $MAINPID + ExecReload=kill -HUP $MAINPID Note however that reloading a daemon by sending a signal (as with the example line above) is usually not a good choice, @@ -473,7 +473,14 @@ other. It is strongly recommended to set ExecReload= to a command that not only triggers a configuration reload of the daemon, but also - synchronously waits for it to complete. + synchronously waits for it to complete. For example, + dbus-broker1 + uses the following: + + ExecReload=busctl call org.freedesktop.DBus \ + /org/freedesktop/DBus org.freedesktop.DBus \ + ReloadConfig +