3 # ngIRCd start and stop script for Debian-based systems
5 # $Id: ngircd.init,v 1.2 2004/09/06 00:32:20 alex Exp $
8 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
9 DAEMON=/usr/sbin/ngircd
11 BASENAME=`basename $0`
15 test -f /etc/default/$BASENAME && . /etc/default/$BASENAME
17 test -x $DAEMON || exit 0
21 $DAEMON --configtest >/dev/null 2>&1
23 echo "Configuration of $NAME is not valide, won't (re)start!"
24 echo "Please run \"$DAEMON --configtest\" manually and fix it up ..."
31 start-stop-daemon --start --quiet --exec $DAEMON -- $PARAMS
42 echo -n "Starting $DESC: "
46 echo -n "Stopping $DESC: "
47 start-stop-daemon --stop --quiet --exec $DAEMON \
49 || echo "(none running)"
53 echo "Reloading $DESC configuration files."
54 start-stop-daemon --stop --signal 1 --quiet --exec $DAEMON
58 echo -n "Restarting $DESC: "
59 start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
65 echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2