git://git.onelab.eu
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was generated by cvs2svn to compensate for changes in r2562,
[util-vserver.git]
/
scripts
/
vshelper
diff --git
a/scripts/vshelper
b/scripts/vshelper
index
9738ba8
..
b9dfdf9
100755
(executable)
--- a/
scripts/vshelper
+++ b/
scripts/vshelper
@@
-54,13
+54,25
@@
function doInternalMethod
case "$ACTION" in
(restart)
logging $"Restarting vserver '$VSERVER'"
case "$ACTION" in
(restart)
logging $"Restarting vserver '$VSERVER'"
- spawn killContext "$XID"
- execute $_VSERVER --defaulttty "$VSERVER" restart
+
+ local sync_dir
+ vshelper.initStopSync sync_dir
+
+ spawn $_VSERVER --defaulttty "$VSERVER" restart &
+
+ disown %%
+ vshelper.waitForStopSync "$sync_dir"
;;
(halt|poweroff)
logging $"Stopping vserver '$VSERVER'"
;;
(halt|poweroff)
logging $"Stopping vserver '$VSERVER'"
- spawn killContext "$XID"
- execute $_VSERVER --defaulttty "$VSERVER" stop
+
+ local sync_dir
+ vshelper.initStopSync sync_dir
+
+ spawn $_VSERVER --defaulttty "$VSERVER" stop &
+
+ disown %%
+ vshelper.waitForStopSync "$sync_dir"
;;
(swsusp)
## TODO: any senseful action here? Perhaps shutdown scheduler for it?
;;
(swsusp)
## TODO: any senseful action here? Perhaps shutdown scheduler for it?