X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fscripts%2Fvtop;h=5ebf25fc4b27ac2d0d6ee6c15009c40d0be24515;hb=faa778968d1a7dfeaebc9fe4b847e691dc62fd15;hp=0b4585c8934234b47a3ef5addc5c172ea417aa1e;hpb=da691fd4bad5e187b307b7fd86bf5fd61e47c3fc;p=util-vserver.git diff --git a/util-vserver/scripts/vtop b/util-vserver/scripts/vtop index 0b4585c..5ebf25f 100755 --- a/util-vserver/scripts/vtop +++ b/util-vserver/scripts/vtop @@ -18,6 +18,11 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #Presents the processes running in all virtual servers -exec /usr/sbin/chcontext --silent --ctx 1 top $* - +: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars} +test -e "$UTIL_VSERVER_VARS" || { + echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2 + exit 1 +} +. "$UTIL_VSERVER_VARS" +exec $__SBINDIR/chcontext --silent --ctx 1 top "$@"