1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

systemd: do not use default dependencies for clvmd/cmirrord units

Do not use default dependencies that systemd adds to the units
so we have better control of when the service is started/stopped
and we don't end up with unexpected behaviour.
This commit is contained in:
Peter Rajnoha 2014-02-14 14:37:19 +01:00
parent 4210219a8b
commit 554159d519
3 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,8 @@ Description=Clustered LVM volumes activation service
Requires=lvm2-clvmd.service
After=lvm2-clvmd.service lvm2-cmirrord.service
OnFailure=lvm2-clvmd.service
DefaultDependencies=false
DefaultDependencies=no
Conflicts=shutdown.target
[Service]
Type=simple

View File

@ -7,6 +7,8 @@ Requires=network.target dlm.service corosync.service
RefuseManualStart=true
RefuseManualStop=true
StopWhenUnneeded=true
DefaultDependencies=no
Conflicts=shutdown.target
[Service]
Type=forking

View File

@ -4,6 +4,8 @@ Documentation=man:cmirrord(8)
Requires=corosync.service
After=corosync.service
Before=remote-fs.target
DefaultDependencies=no
Conflicts=shutdown.target
[Service]
Type=forking