3 # ngIRCd start and stop script for Debian-based systems
5 # $Id: ngircd.init,v 1.2 2003/07/12 23:27:37 alex Exp $
8 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
9 DAEMON=/usr/sbin/ngircd
14 test -x $DAEMON || exit 0
16 test -f /etc/default/ngircd && . /etc/default/ngircd
20 $DAEMON --configtest >/dev/null 2>&1
22 echo "Configuration of $NAME is not valide, won't (re)start!"
23 echo "Please run \"$DAEMON --configtest\" manually and fix it up ..."
30 start-stop-daemon --start --quiet --exec $DAEMON -- $PARAMS
41 echo -n "Starting $DESC: "
45 echo -n "Stopping $DESC: "
46 start-stop-daemon --stop --quiet --exec $DAEMON \
48 || echo "(none running)"
52 echo "Reloading $DESC configuration files."
53 start-stop-daemon --stop --signal 1 --quiet --exec $DAEMON
57 echo -n "Restarting $DESC: "
58 start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
64 echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2