From 97ae63e2a9c07ee64ab9f226b9b6121114f1d732 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 18 Oct 2012 01:18:50 +0200 Subject: service: when invoking service processes in --user mode set MANAGERPID to PID of systemd --- man/systemd.service.xml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'man/systemd.service.xml') 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: ExecStart=/bin/sh -c 'dmesg | tac' + + For services run by a user + instance of systemd the special + environment variable + MANAGERPID is set + to the PID of the systemd + instance. @@ -407,12 +414,12 @@ variable substitution is supported here following the same scheme as for ExecStart=. One - special environment variable is set: - if known $MAINPID is - set to the main process of the - daemon, and may be used for command - lines like the following: - /bin/kill -HUP + additional special environment + variables is set: if known + $MAINPID is set to + the main process of the daemon, and + may be used for command lines like the + following: /bin/kill -HUP $MAINPID. -- cgit v1.2.3-54-g00ecf