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