do not use /dev/null as lockfile
[util-vserver.git] / util-vserver / scripts / vserver.start
index 0e13331..3973e1a 100644 (file)
@@ -22,9 +22,10 @@ fi
 
 function cleanup()
 {
+    test    "$OPTION_DEBUG"    || exec 2>/dev/null >/dev/null
     test -z "$is_started"      || return 0
-    test -z "$is_mounted"      || umountVserver     "$VSERVER_DIR" &>/dev/null || :
-    test -z "$have_interfaces" || disableInterfaces "$VSERVER_DIR" &>/dev/null || :
+    test -z "$is_mounted"      || umountVserver     "$VSERVER_DIR" || :
+    test -z "$have_interfaces" || disableInterfaces "$VSERVER_DIR" || :
 }
 
 is_started=