mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
0a726a7e26
We already used Conflicts=shutdown target to stop LVM2 services on shutdown. But we still missed the ordering - the shutdown.target should be reached only after all the services are really stopped. Reported here: https://github.com/lvmteam/lvm2/issues/17
24 lines
573 B
SYSTEMD
24 lines
573 B
SYSTEMD
[Unit]
|
|
Description=Clustered LVM daemon
|
|
Documentation=man:clvmd(8)
|
|
After=dlm.service corosync.service
|
|
Before=remote-fs-pre.target shutdown.target
|
|
Requires=network.target dlm.service corosync.service
|
|
RefuseManualStart=true
|
|
RefuseManualStop=true
|
|
StopWhenUnneeded=true
|
|
DefaultDependencies=no
|
|
Conflicts=shutdown.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
Environment=CLVMD_OPTS=-T30
|
|
EnvironmentFile=-@SYSCONFDIR@/sysconfig/clvmd
|
|
ExecStart=@USRSBINDIR@/clvmd $CLVMD_OPTS
|
|
SuccessExitStatus=5
|
|
TimeoutStartSec=30
|
|
TimeoutStopSec=10
|
|
OOMScoreAdjust=-1000
|
|
Restart=on-abort
|
|
PIDFile=@CLVMD_PIDFILE@
|