diff options
| author | Alexander Barton <alex@barton.de> | 2004-09-06 00:32:20 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2004-09-06 00:32:20 +0000 |
| commit | f38eeedfd7d3960f0e545632cc9943be4091096b (patch) | |
| tree | bcb120fd132b788766f41f81eed9d512d004cdc5 | |
| parent | 8ca1e4d54861790040e430128326e5455420a39a (diff) | |
| download | ngircd-f38eeedfd7d3960f0e545632cc9943be4091096b.tar.gz ngircd-f38eeedfd7d3960f0e545632cc9943be4091096b.zip | |
Fxied name of "default file" for ngircd-full package. And do the test if
the binary is executable after reading this file.
| -rwxr-xr-x | contrib/Debian/ngircd.init | 7 |
1 files 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() { |