1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-31 14:50:37 +03:00

Make clvmd restart init script wait until clvmd has died before starting it.

This commit is contained in:
Patrick Caulfield 2006-10-04 08:42:14 +00:00
parent 96f70a5303
commit a8ea7dd3fb
2 changed files with 20 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.11 -
=====================================
Make clvmd restart init script wait until clvmd has died before starting it.
Add -R to clvmd which tells running clvmds to reload their device cache.
Add LV column to reports listing kernel modules needed for activation.
Show available fields if report given invalid field. (e.g. lvs -o list)

View File

@ -93,6 +93,24 @@ stop()
return $rtrn
}
wait_for_finish()
{
count=0
while [ "$count" -le 10 -a -n "`pidof clvmd`" ]
do
sleep 1
count=$((count + 1))
done
if [ `pidof clvmd` ]
then
return 1
else
return 0
fi
}
rtrn=1
# See how we were called.
@ -112,6 +130,7 @@ case "$1" in
restart)
if stop
then
wait_for_finish
start
fi
rtrn=$?