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:
parent
0337d99198
commit
850fa8233f
@ -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.
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user