# Check that networking is up.
if is_yes "${NETWORKING}"; then
if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status -a "$1" != init ]; then
- msg_network_down eventum-irc
+ msg_network_down "Eventum IRC Bot"
exit 1
fi
else
case "$1" in
start)
if [ ! -f /var/lock/subsys/eventum-irc ]; then
- msg_starting eventum-irc
+ msg_starting "Eventum IRC Bot"
start-stop-daemon --start \
--exec /usr/sbin/eventum-bot \
--pidfile $PIDFILE \
fail
fi
else
- msg_already_running eventum-irc
+ msg_already_running "Eventum IRC Bot"
fi
;;
stop)
if [ -f /var/lock/subsys/eventum-irc ]; then
- msg_stopping eventum-irc
+ msg_stopping "Eventum IRC Bot"
if start-stop-daemon --stop --oknodo --pidfile $PIDFILE; then
rm -f $PIDFILE /var/lock/subsys/eventum-irc >/dev/null 2>&1
ok
fail
fi
else
- msg_not_running eventum-irc
+ msg_not_running "Eventum IRC Bot"
fi
;;
restart)
exit $?
;;
status)
- status eventum-irc php
+ status "Eventum IRC Bot" php
exit $?
;;
*)