reboot helper may assume that 'reboot(2)' never returns...
* added 'async' method
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2014
94cd875c-1c1d-0410-91d2-
eb244daf1a30
case "$ACTION" in
(restart)
logging $"Restarting vserver '$VSERVER'"
+ spawn killContext "$XID"
execute $_VSERVER --defaulttty "$VSERVER" restart
;;
(halt|poweroff)
logging $"Stopping vserver '$VSERVER'"
+ spawn killContext "$XID"
execute $_VSERVER --defaulttty "$VSERVER" stop
;;
(swsusp)
exit 1
esac
;;
+
+ (async)
+ spawn killContext "$XID"
+ ;;
(sync)
local f=${METHOD_ARGS[0]}
test -p "$f" ||
panic $"File '$f' which is required for synchronisation of vserver '$VSERVER' is not a pipe"
+ spawn killContext "$XID"
echo "$ACTION" >"$f"
;;