Rivoreo Source Code Repositories
src.rivoreo.one
/
vzctl
/
3625e7b4e2f24c27ca5b872a11373cb2847af3cb
/
.
/
scripts
/
vzevent-reboot.in
blob: 82492f42641f97609c243c8268bd512bc5110333 [
file
] [
log
] [
blame
] [
raw
]
#!/bin/sh
I
=
1
while
vzctl
--
quiet status $VEID
|
fgrep
-
w running
;
do
sleep $I
I
=
$
((
I
+
1
))
test $I
-
gt
10
&&
exit
1
done
if
vzctl
--
quiet status $VEID
|
fgrep
-
w mounted
;
then
vzctl
--
quiet umount $VEID
fi
vzctl
--
quiet start $VEID