use '--defaulttty'
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 20 Apr 2004 18:07:49 +0000 (18:07 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 20 Apr 2004 18:07:49 +0000 (18:07 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1481 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vshelper

index 538d210..efcf482 100755 (executable)
@@ -54,11 +54,11 @@ function doInternalMethod
            case "$ACTION" in
                (restart)
                    logging $"Restarting vserver '$VSERVER'"
-                   execute $_VSERVER "$VSERVER" restart
+                   execute $_VSERVER --defaulttty "$VSERVER" restart
                    ;;
                (halt|poweroff)
                    logging $"Stopping vserver '$VSERVER'"
-                   execute $_VSERVER "$VSERVER" stop
+                   execute $_VSERVER --defaulttty "$VSERVER" stop
                    ;;
                (swsusp)
                    ## TODO: any senseful action here? Perhaps shutdown scheduler for it?