1
0
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:
Peter Rajnoha 2015-07-09 10:35:41 +02:00
parent a0cc570f86
commit cb305b9fc0
2 changed files with 3 additions and 2 deletions

View File

@ -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
================================ ================================

View File

@ -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