From: Daniel Hokka Zakrisson Date: Fri, 22 Aug 2008 21:41:22 +0000 (+0000) Subject: This is a requirement for vc_getVserverCtx, so it should be a requirement in the... X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0420839d6098836420fa506833d4958d5c48451a;p=util-vserver.git This is a requirement for vc_getVserverCtx, so it should be a requirement in the scripts. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2764 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/scripts/functions b/scripts/functions index 2273cc4..224e440 100644 --- a/scripts/functions +++ b/scripts/functions @@ -601,6 +601,8 @@ function getVserverStatus read _gvs_ctx <"$1"/run eval "$2"=\$_gvs_ctx + test "$1" = "$($_VUNAME -g --xid "$_gvs_ctx" context)" || return 1 + test -n "$3" || return 0 local _gvs_tmp _getProcNumberCount "$_gvs_ctx" _gvs_tmp