#! /bin/bash
-# $Id: vserver 2418 2006-12-08 13:28:02Z dhozac $
+# $Id: vserver 2521 2007-03-21 04:46:18Z dhozac $
# Copyright (C) 2003,2004,2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
#
... builds a new vserver from scratch
delete ... remove a vserver
- unify [-R]
- ... (de)unify vserver
+ unify [-R] <vunify-opts>*
+ ... (de)unify the vserver with its reference vserver(s).
pkg install <pkg>
... installs package(s) in the vserver
while 'internalize' means that data and programs from the
vserver will be used.
- unify <vunify-opts>*
- ... unify the vserver with its reference vserver(s).
+ hashify
+ ... hashify the guest.
Please report bugs to $PACKAGE_BUGREPORT"
test -d "$VSERVER_DIR" -o ! -e "$__CONFDIR/$vserver.conf" || do_legacy=1
test -z "$do_legacy" || {
+ if test "$cmd" = "convert"; then
+ exec $__PKGLIBDIR/vserver.convert "$vserver"
+ fi
echo $"WARNING: can not find configuration, assuming legacy method" >&2
exec "$_VSERVER_LEGACY" "$@"
}
exit 5
} >&2
-if test -e "$VSERVER_DIR"/name; then
- read VSERVER_NAME <"$VSERVER_DIR"/name
-else
- VSERVER_NAME=$(basename "$VSERVER_DIR")
-fi
+_setVserverName
# Create a new namespace when starting the guest
test "$2" != start -o -n "$OPTION_NONAMESPACE" || isAvoidNamespace "$VSERVER_DIR" || \
exit 3
fi
;;
+ (convert)
+ echo "Vserver '$vserver' is already converted"
+ exit 1
+ ;;
(*)
echo $"Usage: $0 <vserver> {start|stop|suexec|restart|condrestart|exec|enter|chkconfig|running|status|delete}" >&2
exit 2