test -n "$OPTION_DEBUG" || exec 2>/dev/null >/dev/null
test -z "$is_mounted" || umountVserver "$VSERVER_DIR" || :
test -z "$have_interfaces" || disableInterfaces "$VSERVER_DIR" || :
+ test -z "$have_cgroup" || destroyCgroup "$VSERVER_DIR" || :
unlock || :
}
have_interfaces=
startsync_pipe=
have_initcmd=
+have_cgroup=
while test "$#" -gt 0; do
case "$1" in
mountVserver "$VSERVER_DIR" && is_mounted=1
prepareInit "$VSERVER_DIR"
addtoCPUSET "$VSERVER_DIR"
-attachToCgroup "$VSERVER_DIR"
+attachToCgroup "$VSERVER_DIR" && have_cgroup=1
handleDeviceMap --set "$S_CONTEXT" "$VSERVER_DIR/apps/vdevmap"