Package: util-vserver
Version: 0.30.211-6
Severity: important
Tags: patch

i knew there was a corner case where doing forcestop in the stop
function wasn't right:

 invoke-rc.d util-vserver restart

only servers marked for starting at boot are restarted, but all vservers
are stopped.

i think, skipping the forcestop when called with the "restart" argument
would be better behaviour:

###
--- /etc/init.d/util-vserver    2006-11-29 16:51:56.000000000 -0700
+++ util-vserver        2007-01-07 22:07:10.000000000 -0700
@@ -146,7 +146,7 @@
        then
                /usr/lib/util-vserver/vserver-wrapper stop;
        fi
-       if [ "$ALWAYS_STOP" = "true" ]
+       if [ "$ALWAYS_STOP" = "true" ] && [ "$1" != "restart" ]
        then
                forcestop
        fi
###

maybe there's better ways to handle it long-term(always restarting all
servers?), but that's because there is always room for improvement :)

live well,
  vagrant


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to