summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2015-07-09 10:35:41 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2015-07-09 10:40:14 +0200
commitcb305b9fc0ae3f554b71aa3839d091424c660e63 (patch)
tree5b1cc2e7abcb397aa75e81e7fa1352627d5b567a /scripts
parenta0cc570f86ad267e4903aac9bedaecaf22e8d714 (diff)
downloadlvm2-cb305b9fc0ae3f554b71aa3839d091424c660e63.tar.gz
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).
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lvmconf.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lvmconf.sh b/scripts/lvmconf.sh
index 396f7a1c8..c3c170036 100644
--- a/scripts/lvmconf.sh
+++ b/scripts/lvmconf.sh
@@ -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