]> git.pld-linux.org Git - packages/eventum.git/blobdiff - eventum-irc.init
- merged from DEVEL; version 1.5.5; STBR
[packages/eventum.git] / eventum-irc.init
index 31d7752dd99e8152b817f9394f589849c5bbb7b5..e6bf4fc94782298e539c376846d261af06cae9ba 100644 (file)
@@ -10,7 +10,7 @@
 . /etc/sysconfig/network
 
 PHP=/usr/bin/php4
-PIDFILE=/usr/share/eventum/locks/irc_bot.pid
+PIDFILE=/var/run/eventum/irc_bot.pid
 
 # Get service config
 [ -f /etc/sysconfig/eventum-irc ] && . /etc/sysconfig/eventum-irc
@@ -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/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
This page took 0.249099 seconds and 4 git commands to generate.