-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsystemd-kill.ts
More file actions
46 lines (44 loc) · 1.44 KB
/
Copy pathsystemd-kill.ts
File metadata and controls
46 lines (44 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import { standardSignals } from "./common";
import { SystemdValueEnum } from "./types";
const manPage = "systemd.kill(5)";
export const valueEnum: SystemdValueEnum[] = [
{
directive: "KillMode",
values: ["control-group", "mixed", "process", "none"],
manPage,
tips: {
process: "not recommended",
none: "deprecated",
},
docs: {
"control-group":
"All remaining processes in the control group of this unit will be killed on unit stop (for services: after the stop command is executed, as configured with `ExecStop=`).",
mixed: "The `SIGTERM` signal is sent to the main process while the subsequent `SIGKILL` signal is sent to all remaining processes of the unit's control group.",
process: "Only the main process itself is killed (not recommended!)",
none: "No process is killed (strongly recommended against!)",
},
},
{
directive: "KillSignal",
manPage,
tips: { SIGTERM: "default" },
docs: standardSignals,
},
{
directive: "RestartKillSignal",
manPage,
docs: standardSignals,
},
{
directive: "FinalKillSignal",
manPage,
tips: { SIGKILL: "default" },
docs: standardSignals,
},
{
directive: "WatchdogSignal",
manPage,
tips: { SIGABRT: "default" },
docs: standardSignals,
},
];