1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix clvmd initscript restart command to start clvmd if not yet running.

This commit is contained in:
Milan Broz 2010-06-03 21:03:53 +00:00
parent 0337d99198
commit 850fa8233f
2 changed files with 4 additions and 1 deletions

View File

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

View 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
}