summaryrefslogtreecommitdiff
path: root/man/systemd.service.xml
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-05-21 14:05:40 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-05-26 10:28:59 +0200
commitfdf3c16d7576466b7cfa8e278e81da91cf3748ca (patch)
treeffd9c21f99ec7de93a283cf2506b60a3944aed89 /man/systemd.service.xml
parent253acc229cecc19a46d86cc7c329a238a552aa7e (diff)
downloadsystemd-fdf3c16d7576466b7cfa8e278e81da91cf3748ca.tar.gz
man: beef up $MAINPID examples
Inspired by https://github.com/systemd/systemd/pull/15400#discussion_r428537955.
Diffstat (limited to 'man/systemd.service.xml')
-rw-r--r--man/systemd.service.xml11
1 files changed, 9 insertions, 2 deletions
diff --git a/man/systemd.service.xml b/man/systemd.service.xml
index 0cfd0853c6..e8c869244a 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:</para>
- <programlisting>/bin/kill -HUP $MAINPID</programlisting>
+ <programlisting>ExecReload=kill -HUP $MAINPID</programlisting>
<para>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
<varname>ExecReload=</varname> to a command that not only
triggers a configuration reload of the daemon, but also
- synchronously waits for it to complete.</para>
+ synchronously waits for it to complete. For example,
+ <citerefentry project='mankier'><refentrytitle>dbus-broker</refentrytitle><manvolnum>1</manvolnum></citerefentry>
+ uses the following:</para>
+
+ <programlisting>ExecReload=busctl call org.freedesktop.DBus \
+ /org/freedesktop/DBus org.freedesktop.DBus \
+ ReloadConfig
+</programlisting>
</listitem>
</varlistentry>