master - lvmconf: fix ignored --startstopservices in lvmconf ... --mirrorservice on systemd
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=cb305b9fc0ae3f554b71aa3839d091424c660e63 Commit: cb305b9fc0ae3f554b71aa3839d091424c660e63 Parent: a0cc570f86ad267e4903aac9bedaecaf22e8d714 Author: Peter Rajnoha <[email protected]> AuthorDate: Thu Jul 9 10:35:41 2015 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Thu Jul 9 10:40:14 2015 +0200
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).
--- WHATS_NEW | 1 + scripts/lvmconf.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.126 - ================================ + Fix ignored --startstopservices option if running lvmconf with systemd. Version 2.02.125 - 7th July 2015 ================================
scripts/lvmconf.sh +2 -2
@@ -412,12 +412,12 @@ if [ "$HANDLE_SERVICES" == "1" ]; then if [ "$LOCKING_TYPE" = "3" ]; then 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 fi else 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 fi fi