1SYSTEMD.KILL(5)                  systemd.kill                  SYSTEMD.KILL(5)
2
3
4

NAME

6       systemd.kill - Process killing procedure configuration
7

SYNOPSIS

9       service.service, socket.socket, mount.mount, swap.swap, scope.scope
10

DESCRIPTION

12       Unit configuration files for services, sockets, mount points, swap
13       devices and scopes share a subset of configuration options which define
14       the killing procedure of processes belonging to the unit.
15
16       This man page lists the configuration options shared by these five unit
17       types. See systemd.unit(5) for the common options shared by all unit
18       configuration files, and systemd.service(5), systemd.socket(5),
19       systemd.swap(5), systemd.mount(5) and systemd.scope(5) for more
20       information on the configuration file options specific to each unit
21       type.
22
23       The kill procedure configuration options are configured in the
24       [Service], [Socket], [Mount] or [Swap] section, depending on the unit
25       type.
26

OPTIONS

28       KillMode=
29           Specifies how processes of this unit shall be killed. One of
30           control-group, process, mixed, none.
31
32           If set to control-group, all remaining processes in the control
33           group of this unit will be killed on unit stop (for services: after
34           the stop command is executed, as configured with ExecStop=). If set
35           to process, only the main process itself is killed. If set to
36           mixed, the SIGTERM signal (see below) is sent to the main process
37           while the subsequent SIGKILL signal (see below) is sent to all
38           remaining processes of the unit's control group. If set to none, no
39           process is killed. In this case, only the stop command will be
40           executed on unit stop, but no process be killed otherwise.
41           Processes remaining alive after stop are left in their control
42           group and the control group continues to exist after stop unless it
43           is empty.
44
45           Processes will first be terminated via SIGTERM (unless the signal
46           to send is changed via KillSignal=). Optionally, this is
47           immediately followed by a SIGHUP (if enabled with SendSIGHUP=). If
48           then, after a delay (configured via the TimeoutStopSec= option),
49           processes still remain, the termination request is repeated with
50           the SIGKILL signal (unless this is disabled via the SendSIGKILL=
51           option). See kill(2) for more information.
52
53           Defaults to control-group.
54
55       KillSignal=
56           Specifies which signal to use when killing a service. This controls
57           the signal that is sent as first step of shutting down a unit (see
58           above), and is usually followed by SIGKILL (see above and below).
59           For a list of valid signals, see signal(7). Defaults to SIGTERM.
60
61           Note that right after sending the signal specified in this setting
62           systemd will always send SIGCONT, to ensure that even suspended
63           tasks can be terminated cleanly.
64
65       SendSIGHUP=
66           Specifies whether to send SIGHUP to remaining processes immediately
67           after sending the signal configured with KillSignal=. This is
68           useful to indicate to shells and shell-like programs that their
69           connection has been severed. Takes a boolean value. Defaults to
70           "no".
71
72       SendSIGKILL=
73           Specifies whether to send SIGKILL to remaining processes after a
74           timeout, if the normal shutdown procedure left processes of the
75           service around. Takes a boolean value. Defaults to "yes".
76

SEE ALSO

78       systemd(1), systemctl(1), journalctl(8), systemd.unit(5),
79       systemd.service(5), systemd.socket(5), systemd.swap(5),
80       systemd.mount(5), systemd.exec(5), systemd.directives(7), kill(2),
81       signal(7)
82
83
84
85systemd 219                                                    SYSTEMD.KILL(5)
Impressum