From f632ca2645dc90ed9b5e5fdfc0ed90fbc937358f Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 6 Sep 2004 00:36:49 +0000 Subject: [PATCH] ed name of "default file" for ngircd-full package. And do the test if the binary is executable after reading this file. [From HEAD]. --- ChangeLog | 5 ++++- contrib/Debian/ngircd.init | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index af6436bb..2cf968ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,9 @@ ngircd 0.8-CVS + - Debian: Fxied the name of the "default file" in the init script for + ngircd-full packages. And do the test if the binary is executable after + reading this file. - Enhanced the "test suite": please have a look at src/testsuite/README! ngircd 0.8.0 (2004-06-26) @@ -534,4 +537,4 @@ ngIRCd 0.0.1, 31.12.2001 -- -$Id: ChangeLog,v 1.233.2.6 2004/09/04 20:50:53 alex Exp $ +$Id: ChangeLog,v 1.233.2.7 2004/09/06 00:36:49 alex Exp $ diff --git a/contrib/Debian/ngircd.init b/contrib/Debian/ngircd.init index 206e2f0e..57fb056e 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.1.2.1 2004/09/06 00:36:49 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