File tree 2 files changed +18
-8
lines changed
2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,16 @@ RefuseManualStop=true
9
9
RefuseManualStart=true
10
10
11
11
[Service]
12
- Type=forking
13
- PIDFile=@runstatedir@/sbd.pid
12
+ Type=simple
13
+ # sbd-inquisitor will usually have opened a watchdog-device
14
+ # thus we should give it a chance to do what
15
+ # it needs to (anyway kills the subprocesses the
16
+ # hard way) and close that gracefully.
17
+ # If that isn't successful within time let mixed
18
+ # do a cleanup although that will most likely lead to suicide.
19
+ KillMode=mixed
14
20
EnvironmentFile=-@CONFIGDIR@/sbd
15
- ExecStart=@sbindir@/sbd $SBD_OPTS -p @runstatedir@/sbd.pid watch
16
- ExecStop=@bindir@/kill -TERM $MAINPID
21
+ ExecStart=@sbindir@/sbd $SBD_OPTS watch
17
22
18
23
# Could this benefit from exit codes for restart?
19
24
# Does this need to be set to msgwait * 1.2?
Original file line number Diff line number Diff line change @@ -7,11 +7,16 @@ RefuseManualStop=true
7
7
RefuseManualStart=true
8
8
9
9
[Service]
10
- Type=forking
11
- PIDFile=@runstatedir@/sbd.pid
10
+ Type=simple
11
+ # sbd-inquisitor will usually have opened a watchdog-device
12
+ # thus we should give it a chance to do what
13
+ # it needs to (anyway kills the subprocesses the
14
+ # hard way) and close that gracefully.
15
+ # If that isn't successful within time let mixed
16
+ # do a cleanup although that will most likely lead to suicide.
17
+ KillMode=mixed
12
18
EnvironmentFile=-@CONFIGDIR@/sbd
13
- ExecStart=@sbindir@/sbd $SBD_OPTS -p @runstatedir@/sbd.pid watch
14
- ExecStop=@bindir@/kill -TERM $MAINPID
19
+ ExecStart=@sbindir@/sbd $SBD_OPTS watch
15
20
16
21
# Could this benefit from exit codes for restart?
17
22
# Does this need to be set to msgwait * 1.2?
You can’t perform that action at this time.
0 commit comments