]> git.pld-linux.org Git - packages/eventum.git/commitdiff
- on stop, invalid pidfile is ok
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 19 Jan 2005 00:48:49 +0000 (00:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    eventum-irc.init -> 1.2

eventum-irc.init

index 31d7752dd99e8152b817f9394f589849c5bbb7b5..4d6f975614909abe08da19413f0723c5766eda02 100644 (file)
@@ -32,11 +32,11 @@ start)
        if [ ! -f /var/lock/subsys/eventum-irc ]; then
                msg_starting eventum-irc
                start-stop-daemon --start \
        if [ ! -f /var/lock/subsys/eventum-irc ]; then
                msg_starting eventum-irc
                start-stop-daemon --start \
-                        --exec $PHP \
-                        --pidfile $PIDFILE \
-                        --chuid http \
-                        --chdir /usr/share/eventum/misc/irc \
-                        --background -- -q bot.php
+                       --exec $PHP \
+                       --pidfile $PIDFILE \
+                       --chuid http \
+                       --chdir /usr/share/eventum/misc/irc \
+                       --background -- -q bot.php
 
                RETVAL=$?
                if [ $RETVAL -eq 0 ]; then
 
                RETVAL=$?
                if [ $RETVAL -eq 0 ]; then
@@ -52,7 +52,7 @@ start)
 stop)
        if [ -f /var/lock/subsys/eventum-irc ]; then
                msg_stopping eventum-irc
 stop)
        if [ -f /var/lock/subsys/eventum-irc ]; then
                msg_stopping eventum-irc
-               if start-stop-daemon --stop --pidfile $PIDFILE; then
+               if start-stop-daemon --stop --oknodo --pidfile $PIDFILE; then
                        rm -f $PIDFILE /var/lock/subsys/eventum-irc >/dev/null 2>&1
                        ok
                else
                        rm -f $PIDFILE /var/lock/subsys/eventum-irc >/dev/null 2>&1
                        ok
                else
This page took 0.041649 seconds and 4 git commands to generate.