]> sourceware.org Git - lvm2.git/commitdiff
Fix clvmd initscript restart command to start clvmd if not yet running.
authorMilan Broz <mbroz@redhat.com>
Thu, 3 Jun 2010 21:03:53 +0000 (21:03 +0000)
committerMilan Broz <mbroz@redhat.com>
Thu, 3 Jun 2010 21:03:53 +0000 (21:03 +0000)
WHATS_NEW
scripts/clvmd_init_red_hat.in

index ae753e0d4192d11f23dbe5de062d3f7e1fa52c1d..e767e0eb133f20a6b3d840e6244f394d0e98d9e7 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.67 -
 ===============================
+  Fix clvmd initscript restart command to start clvmd if not yet running.
   Use absolute paths for clvmd restart.
   Require partial option in lvchange --refresh for partial LVs.
   Do not fail lvm_init() if init_logging() or _init_rand() generates an errno.
index 53e5c3294444622225986afdff7f73b72470bb92..1a03984c88e9c9407a5e1462b1fdbf5e0969ec11 100644 (file)
@@ -152,13 +152,15 @@ restart() {
 
        # Try to get clvmd to restart itself. This will preserve 
        # exclusive LV locks
-       action "Restarting $DAEMON: " $DAEMON -S || return $?
+       action "Restarting $DAEMON: " $DAEMON -S
 
        # If that fails then do a normal stop & restart
        if  [ $? != 0 ]; then
            stop && start
+           return $?
        else
            touch $LOCK_FILE
+           return 0
        fi
 }
 
This page took 0.043047 seconds and 5 git commands to generate.