diff options
| author | Alexander Barton <alex@barton.de> | 2013-08-19 23:31:10 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2013-08-19 23:33:11 +0200 |
| commit | e2f09213bcef479e7b3a35d67b1cc6b76f2205fb (patch) | |
| tree | cf934cb8f924d5443e836d407018f39cc0a58b8e /contrib/Debian/ngircd.init | |
| parent | c8b12af1d2d155ec79dc2044a4ff177cf07de4fe (diff) | |
| download | ngircd-e2f09213bcef479e7b3a35d67b1cc6b76f2205fb.tar.gz ngircd-e2f09213bcef479e7b3a35d67b1cc6b76f2205fb.zip | |
Debian init script: test for binary after reading defaults
This allows the system administrator to overwrite the DAEMON variable in /etc/defaults/<name> and to use this init script even when the default "/usr/sbin/ngircd" doesn't exist on the system.
Diffstat (limited to 'contrib/Debian/ngircd.init')
| -rwxr-xr-x | contrib/Debian/ngircd.init | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/Debian/ngircd.init b/contrib/Debian/ngircd.init index 6a418d78..8639e229 100755 --- a/contrib/Debian/ngircd.init +++ b/contrib/Debian/ngircd.init @@ -1,7 +1,7 @@ #!/bin/sh # # ngIRCd start and stop script for Debian-based systems -# Copyright 2008-2010 Alexander Barton <alex@barton.de> +# Copyright 2008-2013 Alexander Barton <alex@barton.de> # ### BEGIN INIT INFO @@ -24,13 +24,13 @@ PARAMS="" STARTTIME=1 DIETIME=10 -test -x $DAEMON || exit 5 - test -h "$0" && me=`readlink $0` || me="$0" BASENAME=`basename $me` test -r /etc/default/$BASENAME && . /etc/default/$BASENAME +test -x $DAEMON || exit 5 + # LSB compatibility functions that become used if there is no local # include file available. log_daemon_msg() { |