]> git.pld-linux.org Git - packages/libcgroup.git/commitdiff
- always delete loc/pid when stopping (otherwise these would stay if daemon died)
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 5 Apr 2011 17:47:30 +0000 (17:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cgred.init -> 1.12

cgred.init

index 3c53621346321953eb65f0d80cccf41d3b6b1079..ccb20a881d76633d1a9718eee0715d285321c8f2 100644 (file)
@@ -59,9 +59,7 @@ stop() {
        msg_stopping "CGroup Rules Engine Daemon"
        killproc --pidfile /var/run/cgrulesengd.pid cgrulesengd -TERM
        RETVAL=$?
-       if [ $RETVAL -eq 0 ] ; then
-               rm -f /var/lock/subsys/cgred /var/run/cgrulesengd.pid
-       fi
+       rm -f /var/lock/subsys/cgred /var/run/cgrulesengd.pid
 }
 
 reload() {
This page took 0.136016 seconds and 4 git commands to generate.