Package: util-vserver
Version: 0.30.211-6
Followup-For: Bug #406040

i think the attached patch actually handles forcestop a little better,
by moving the ALWAYS_STOP/forcestop calls from the stop function and
into the case statement.

this way, forcestop isn't called on restart.

is it feasible to get this into etch?

live well,
  vagrant
--- /etc/init.d/util-vserver	2006-11-29 16:51:56.000000000 -0700
+++ util-vserver	2007-01-13 21:32:08.000000000 -0700
@@ -146,10 +146,6 @@
 	then
 		/usr/lib/util-vserver/vserver-wrapper stop;
 	fi
-	if [ "$ALWAYS_STOP" = "true" ]
-	then
-		forcestop
-	fi
 	rm -f "$vprocunhide_lockfile"
     else
     	echo -n $"Linux-VServer capability not detected in kernel."
@@ -202,6 +198,10 @@
 	 fi
 	 # Then stop the modern vservers
 	 stop
+	 if [ "$ALWAYS_STOP" = "true" ]
+	 then
+		 forcestop
+	 fi
 	 ;;
     forcestop)
 	stop

Reply via email to