Debian Codegraph @

scripts/[email protected]

raw symbols SCIP
1 [Unit]
2 # to be used as OnFailure unit in [email protected]
3 Conflicts=drbd-promote@%i.service
4 Description=Demotion of DRBD resource %I
5
6 RefuseManualStart=yes
7 RefuseManualStop=yes
8
9
10 # See also systemd-system.conf(5) about WatchdogDevice, RuntimeWatchdogSec,
11 # RebootWatchdogSec and possibly JobTimeoutSec, JobTimeoutAction for
12 # shutdown.target and/or reboot.target
13 # reboot-force, reboot-immediate
14 FailureAction=reboot
15 # RebootArgument=
16
17 # in case the job is not even executed
18 # JobTimeoutSec=60
19 # JobTimeoutAction=reboot-immediate
20 # JobTimeoutRebootArgument=
21
22 [Service]
23 SyslogIdentifier=drbd-%I
24 TimeoutSec=60
25 # Note: oneshot cannot "Restart"
26 # If we would need to have systemd retry failed demotion,
27 # this needs to get more involved.
28 # "Type=forking" would be an option to have it retry a number of times,
29 # and then only escalate to FailureAction if that did not help.
30 Type=oneshot
31 ExecStart=/lib/drbd/scripts/drbd-service-shim.sh secondary-or-escalate %I
32 ExecStopPost=-/bin/journalctl --sync