mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Fix clvmd initscript restart command to start clvmd if not yet running.
This commit is contained in:
parent
0337d99198
commit
850fa8233f
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.67 -
|
Version 2.02.67 -
|
||||||
===============================
|
===============================
|
||||||
|
Fix clvmd initscript restart command to start clvmd if not yet running.
|
||||||
Use absolute paths for clvmd restart.
|
Use absolute paths for clvmd restart.
|
||||||
Require partial option in lvchange --refresh for partial LVs.
|
Require partial option in lvchange --refresh for partial LVs.
|
||||||
Do not fail lvm_init() if init_logging() or _init_rand() generates an errno.
|
Do not fail lvm_init() if init_logging() or _init_rand() generates an errno.
|
||||||
|
@ -152,13 +152,15 @@ restart() {
|
|||||||
|
|
||||||
# Try to get clvmd to restart itself. This will preserve
|
# Try to get clvmd to restart itself. This will preserve
|
||||||
# exclusive LV locks
|
# exclusive LV locks
|
||||||
action "Restarting $DAEMON: " $DAEMON -S || return $?
|
action "Restarting $DAEMON: " $DAEMON -S
|
||||||
|
|
||||||
# If that fails then do a normal stop & restart
|
# If that fails then do a normal stop & restart
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
stop && start
|
stop && start
|
||||||
|
return $?
|
||||||
else
|
else
|
||||||
touch $LOCK_FILE
|
touch $LOCK_FILE
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user