From f647bd0bcf5d8fa15b28a1c929685636d635fe86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 19 Jan 2005 00:48:49 +0000 Subject: [PATCH] - on stop, invalid pidfile is ok Changed files: eventum-irc.init -> 1.2 --- eventum-irc.init | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/eventum-irc.init b/eventum-irc.init index 31d7752..4d6f975 100644 --- a/eventum-irc.init +++ b/eventum-irc.init @@ -32,11 +32,11 @@ 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 @@ -52,7 +52,7 @@ start) 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 -- 2.43.0