X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsystemd.service.xml;h=98507f405f96e96a632dd9d45031c5e99b5ff4dc;hb=818156512411835a4a7f070e6fec3d7b80e1f629;hp=94e72df9b47a48cbc09ceb18e78317b311e79bd4;hpb=494a66821815e8109afa136bd42818b85da38c09;p=elogind.git diff --git a/man/systemd.service.xml b/man/systemd.service.xml index 94e72df9b..98507f405 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -139,9 +139,11 @@ If set to (the default - value if BusName= - is not specified), it is expected that - the process configured with + value if neither + Type= nor + BusName= are + specified), it is expected that the + process configured with ExecStart= is the main process of the service. In this mode, if the process offers @@ -427,7 +429,7 @@ ExecStart=/bin/sh -c 'dmesg | tac' - Only select environment variables + Only select environment variables that are set for executed commands. See systemd.exec5. @@ -441,7 +443,7 @@ one and two two, respectively. Since two commands are - specified + specified, Type=oneshot must be used. @@ -732,22 +734,33 @@ ExecStart=/bin/echo $ONE $TWO ${TWO} considered successful termination, in addition to the normal successful exit code 0 and the signals SIGHUP, SIGINT, - SIGTERM and SIGPIPE. Exit status + SIGTERM, and SIGPIPE. Exit status definitions can either be numeric exit codes or termination signal names, - separated by spaces. Example: - SuccessExitStatus=1 2 8 - SIGKILL, ensures that exit - codes 1, 2, 8 and the termination - signal SIGKILL are considered clean - service terminations. This option may - appear more than once in which case - the list of successful exit statuses - is merged. If the empty string is - assigned to this option, the list is - reset, all prior assignments of this - option will have no - effect. + separated by spaces. For example: + SuccessExitStatus=1 2 8 SIGKILL + ensures that exit codes 1, 2, 8 and + the termination signal + SIGKILL are + considered clean service terminations. + + + Note that if a process has a + signal handler installed and exits by + calling + _exit2 + in response to a signal, the + information about the signal is lost. + Programs should instead perform cleanup and kill themselves with the same signal instead. See + Proper handling of SIGINT/SIGQUIT — How to be a proper program. + + This option may appear more than once + in which case the list of successful + exit statuses is merged. If the empty + string is assigned to this option, the + list is reset, all prior assignments + of this option will have no + effect.