X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsystemd.service.xml;h=72b872beced11be7146da478c10c6dd3913b548e;hb=336c6e4690ea017a11799aa331ffedd4c59a31ad;hp=98507f405f96e96a632dd9d45031c5e99b5ff4dc;hpb=a9a305332b7faf0d0d16db04909badaf6a095fef;p=elogind.git diff --git a/man/systemd.service.xml b/man/systemd.service.xml index 98507f405..72b872bec 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -392,16 +392,32 @@ replaced by the value of the environment variable including all whitespace it contains, resulting in a - single argument. Use + single argument. Use $FOO as a separate word on the command line, in which case it will be replaced by the value - of the environment variable split up - at whitespace, resulting in zero or - more arguments. To pass a literal dollar sign, - use $$. Note that the first - argument (i.e. the program to execute) - may not be a variable. + of the environment variable split at + whitespace, resulting in zero or more + arguments. To pass a literal dollar + sign, use $$. + Variables whose value is not known at + expansion time are treated as empty + strings. Note that the first argument + (i.e. the program to execute) may not + be a variable. + + Variables to be used in this + fashion may be defined through + Environment= and + EnvironmentFile=. + In addition, variables listed in + section "Environment variables in + spawned processes" in + systemd.exec5 + which are considered "static + configuration" may used (this includes + e.g. $USER, but not + $TERM). Optionally, if the absolute file name is prefixed with @@ -429,11 +445,6 @@ ExecStart=/bin/sh -c 'dmesg | tac' - Only select environment variables that - are set for executed commands. See - systemd.exec5. - - Example: ExecStart=/bin/echo one ; /bin/echo "two two" @@ -737,7 +748,10 @@ ExecStart=/bin/echo $ONE $TWO ${TWO} SIGTERM, and SIGPIPE. Exit status definitions can either be numeric exit codes or termination signal names, - separated by spaces. For example: + separated by spaces. Signals will only + be considered if the service does not implement + a signal handler and exits as a direct result + of receiving the signal. For example: SuccessExitStatus=1 2 8 SIGKILL ensures that exit codes 1, 2, 8 and the termination signal