From f38eeedfd7d3960f0e545632cc9943be4091096b Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 6 Sep 2004 00:32:20 +0000 Subject: [PATCH] Fxied name of "default file" for ngircd-full package. And do the test if the binary is executable after reading this file. --- contrib/Debian/ngircd.init | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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() { -- 2.39.2