. /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
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
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