summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-10-18 01:18:50 +0200
committerLennart Poettering <lennart@poettering.net>2012-10-18 01:18:50 +0200
commit97ae63e2a9c07ee64ab9f226b9b6121114f1d732 (patch)
tree75b10ba576630eef8805b28d8616131b99bd7b3d /man
parentc978343015c787713651dff571acb5207367f5f2 (diff)
service: when invoking service processes in --user mode set MANAGERPID to PID of systemd
Diffstat (limited to 'man')
-rw-r--r--man/systemd.service.xml19
1 files changed, 13 insertions, 6 deletions
diff --git a/man/systemd.service.xml b/man/systemd.service.xml
index 11f6006636..59ecf810fb 100644
--- a/man/systemd.service.xml
+++ b/man/systemd.service.xml
@@ -365,6 +365,13 @@
explicitly to a shell implementation
of some kind. Example:
<literal>ExecStart=/bin/sh -c 'dmesg | tac'</literal></para>
+
+ <para>For services run by a user
+ instance of systemd the special
+ environment variable
+ <literal>MANAGERPID</literal> is set
+ to the PID of the systemd
+ instance.</para>
</listitem>
</varlistentry>
@@ -407,12 +414,12 @@
variable substitution is supported
here following the same scheme as for
<varname>ExecStart=</varname>. One
- special environment variable is set:
- if known <literal>$MAINPID</literal> is
- set to the main process of the
- daemon, and may be used for command
- lines like the following:
- <command>/bin/kill -HUP
+ additional special environment
+ variables is set: if known
+ <literal>$MAINPID</literal> is set to
+ the main process of the daemon, and
+ may be used for command lines like the
+ following: <command>/bin/kill -HUP
$MAINPID</command>.</para></listitem>
</varlistentry>