function kill_contexts()
{
+ local xid
for xid in `ls -1 /proc/virtual`; do
test "$xid" = "info" -o "$xid" = "status" && continue
$_VATTRIBUTE --xid $xid --set --flag ~persistent
sleep 3
$_VKILL --xid $xid -s 9
done
+ local alive=0
+ for xid in `ls -1 /proc/virtual`; do
+ test "$xid" = "info" -o "$xid" = "status" && continue
+ let alive+=1
+ done
+ test $alive = 0
}
function start()
;;
status)
test -f $lockfile && {
- echo $"/proc entries were fixed"
+ echo $"Path to vshelper has been set"
exit 0
}
- echo $"/proc entries are not fixed"
+ echo $"Path to vshelper has not been set"
exit 1
;;
*)