diff --git a/contrib/Debian/ngircd.init b/contrib/Debian/ngircd.init index 206e2f0e..899df714 100755 --- a/contrib/Debian/ngircd.init +++ b/contrib/Debian/ngircd.init @@ -2,18 +2,19 @@ # # ngIRCd start and stop script for Debian-based systems # -# $Id: ngircd.init,v 1.1 2003/12/31 17:20:11 alex Exp $ +# $Id: ngircd.init,v 1.2 2004/09/06 00:32:20 alex Exp $ # PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/ngircd NAME=ngIRCd +BASENAME=`basename $0` DESC="IRC daemon" PARAMS="" -test -x $DAEMON || exit 0 +test -f /etc/default/$BASENAME && . /etc/default/$BASENAME -test -f /etc/default/ngircd && . /etc/default/ngircd +test -x $DAEMON || exit 0 Check_Config() {