From 360ac98ec365f55ea198e07d2c5b86deef14bc6c Mon Sep 17 00:00:00 2001
From: Lennart Poettering <lennart@poettering.net>
Date: Wed, 19 Feb 2014 02:54:00 +0100
Subject: [PATCH] man: document $MAINPID
(cherry picked from commit b67f562c9cac44bd78b24f5aae78a1797c5d4182)
---
man/systemd.exec.xml | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml
index 630a28c..d8dab36 100644
--- a/man/systemd.exec.xml
+++ b/man/systemd.exec.xml
@@ -472,7 +472,7 @@
<varlistentry>
<term><varname>StandardError=</varname></term>
<listitem><para>Controls where file
- descriptor 2 (standard error) of the
+ descriptor 2 (STDERR) of the
executed processes is connected to.
The available options are identical to
those of
@@ -1067,6 +1067,17 @@
</varlistentry>
<varlistentry>
+ <term><varname>$MAINPID</varname></term>
+
+ <listitem><para>The PID of the units
+ main process if it is known. This is
+ only set for control processes as
+ invoked by
+ <varname>ExecReload=</varname> and
+ similar. </para></listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><varname>$MANAGERPID</varname></term>
<listitem><para>The PID of the user