mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmconf: fix ignored --startstopservices in lvmconf ... --mirrorservice on systemd
If running lvmconf ... --startstopservice --mirrorservice in systemd environment, handle lvm2-cmirrord accordingly. A typo in the script caused the lvm2-cmirrord to not start/stop immediately, it was only enabled/disabled (so the --startstopservice was ignored in this case).
This commit is contained in:
parent
a0cc570f86
commit
cb305b9fc0
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.126 -
|
Version 2.02.126 -
|
||||||
================================
|
================================
|
||||||
|
Fix ignored --startstopservices option if running lvmconf with systemd.
|
||||||
|
|
||||||
Version 2.02.125 - 7th July 2015
|
Version 2.02.125 - 7th July 2015
|
||||||
================================
|
================================
|
||||||
|
@ -412,12 +412,12 @@ if [ "$HANDLE_SERVICES" == "1" ]; then
|
|||||||
|
|
||||||
if [ "$LOCKING_TYPE" = "3" ]; then
|
if [ "$LOCKING_TYPE" = "3" ]; then
|
||||||
set_service systemd activate lvm2-cluster-activation.service
|
set_service systemd activate lvm2-cluster-activation.service
|
||||||
if [ "$HANDLE_CMIRROR_SERVICE" ]; then
|
if [ "$HANDLE_MIRROR_SERVICE" = "1" ]; then
|
||||||
set_service activate lvm2-cmirrord.service
|
set_service activate lvm2-cmirrord.service
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
set_service systemd deactivate lvm2-cluster-activation.service
|
set_service systemd deactivate lvm2-cluster-activation.service
|
||||||
if [ "$HANDLE_CMIRROR_SERVICE" ]; then
|
if [ "$HANDLE_MIRROR_SERVICE" = "1" ]; then
|
||||||
set_service systemd deactivate lvm2-cmirrord.service
|
set_service systemd deactivate lvm2-cmirrord.service
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user