diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-04-12 11:56:00 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-04-12 15:02:34 +0200 |
commit | 623a00020f116d8e9c70608a9e4f7cc978342441 (patch) | |
tree | 645dd42b4cceec1c9111d9ac9a2d1e566cafe91a /man | |
parent | 3af48a86d99b3117a44bc22258ab4d34d0ba7655 (diff) | |
download | systemd-623a00020f116d8e9c70608a9e4f7cc978342441.tar.gz |
notify: Add EXIT_STATUS field
Whenever one of our tools or daemons exits, let's send the exit status
via sd-notify in the EXIT_STATUS field.
Diffstat (limited to 'man')
-rw-r--r-- | man/sd_notify.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/man/sd_notify.xml b/man/sd_notify.xml index 39bddc9d15..f93542e329 100644 --- a/man/sd_notify.xml +++ b/man/sd_notify.xml @@ -171,6 +171,13 @@ </varlistentry> <varlistentry> + <term>EXIT_STATUS=…</term> + + <listitem><para>If a service exits, the return value of its <function>main()</function> function. + </para></listitem> + </varlistentry> + + <varlistentry> <term>MAINPID=…</term> <listitem><para>The main process ID (PID) of the service, in case the service manager did not fork |