summaryrefslogtreecommitdiffstats
path: root/man/systemd-notify.xml
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-04-30 11:59:30 +0200
committerLennart Poettering <lennart@poettering.net>2020-04-30 18:36:05 +0200
commit9dcd43b14927fe6f9182a252213dbf182d9d8e01 (patch)
tree28b24ea0c30a289557dc465e95b1ac4b00a4c0af /man/systemd-notify.xml
parentefi: honour SYSTEMD_EFI_OPTIONS even if we wouldn't honour SystemdOptions EFI... (diff)
downloadsystemd-9dcd43b14927fe6f9182a252213dbf182d9d8e01.tar.xz
systemd-9dcd43b14927fe6f9182a252213dbf182d9d8e01.zip
notify: beef up --pid= logic
Prompted by the discussions on #15547.
Diffstat (limited to 'man/systemd-notify.xml')
-rw-r--r--man/systemd-notify.xml13
1 files changed, 7 insertions, 6 deletions
diff --git a/man/systemd-notify.xml b/man/systemd-notify.xml
index 89060680f5..4560074505 100644
--- a/man/systemd-notify.xml
+++ b/man/systemd-notify.xml
@@ -84,12 +84,13 @@
<varlistentry>
<term><option>--pid=</option></term>
- <listitem><para>Inform the init system about the main PID of
- the daemon. Takes a PID as argument. If the argument is
- omitted, the PID of the process that invoked
- <command>systemd-notify</command> is used. This is equivalent
- to <command>systemd-notify MAINPID=$PID</command>. For details
- about the semantics of this option see
+ <listitem><para>Inform the service manager about the main PID of the daemon. Takes a PID as
+ argument. If the argument is specified as <literal>auto</literal> or omitted, the PID of the process
+ that invoked <command>systemd-notify</command> is used, except if that's the service manager. If the
+ argument is specified as <literal>self</literal>, the PID of the <command>systemd-notify</command>
+ command itself is used, and if <literal>parent</literal> is specified the calling process' PID is
+ used — even if it is the service manager. This is equivalent to <command>systemd-notify
+ MAINPID=$PID</command>. For details about the semantics of this option see
<citerefentry><refentrytitle>sd_notify</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para></listitem>
</varlistentry>