From 9dcd43b14927fe6f9182a252213dbf182d9d8e01 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 30 Apr 2020 11:59:30 +0200 Subject: notify: beef up --pid= logic Prompted by the discussions on #15547. --- man/systemd-notify.xml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'man/systemd-notify.xml') 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 @@ - 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 - systemd-notify is used. This is equivalent - to systemd-notify MAINPID=$PID. For details - about the semantics of this option see + Inform the service manager about the main PID of the daemon. Takes a PID as + argument. If the argument is specified as auto or omitted, the PID of the process + that invoked systemd-notify is used, except if that's the service manager. If the + argument is specified as self, the PID of the systemd-notify + command itself is used, and if parent is specified the calling process' PID is + used — even if it is the service manager. This is equivalent to systemd-notify + MAINPID=$PID. For details about the semantics of this option see sd_notify3. -- cgit v1.2.3