cgred passes -12 as the kill signal to killproc.
Change that SIGTERM, otherwise we end up never killing cgrulesengd and
keep spawing several instances of it.

Signed-off-by: Balbir Singh <[EMAIL PROTECTED]>

Index: scripts/init.d/cgred
===================================================================
--- scripts/init.d/cgred        (revision 229)
+++ scripts/init.d/cgred        (working copy)
@@ -87,7 +87,7 @@
 stop()
 {
        echo -n $"Stopping CGroup Rules Engine Daemon..."
-       killproc -p $pidfile $processname -12
+       killproc -p $pidfile $processname -TERM
        RETVAL=$?
        echo
        if [ $RETVAL -eq 0 ] ; then

-- 
        Balbir

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to