X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=contrib%2FDebian%2Fngircd.init;h=8127e8fddef192ca57a46f7f6a7f26010193eb60;hb=a1ce3fc779c66f1febcc4c861cfd593a1ab48002;hp=f308dd2a001614dd25058027be72d89ced644535;hpb=c3a8d6a73edd66a26ec731dd4bb02a8c272e3d9c;p=ngircd-alex.git diff --git a/contrib/Debian/ngircd.init b/contrib/Debian/ngircd.init index f308dd2a..8127e8fd 100755 --- a/contrib/Debian/ngircd.init +++ b/contrib/Debian/ngircd.init @@ -1,13 +1,13 @@ #!/bin/sh # # ngIRCd start and stop script for Debian-based systems -# Copyright 2008,2009 Alexander Barton +# Copyright 2008-2015 Alexander Barton # ### BEGIN INIT INFO -# Provides: ngircd ircd -# Required-Start: $network $local_fs -# Required-Stop: +# Provides: ngircd +# Required-Start: $network $remote_fs +# Required-Stop: $network $remote_fs # Should-Start: $syslog $named # Should-Stop: $syslog # Default-Start: 2 3 4 5 @@ -24,20 +24,20 @@ 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() { echo -n "$*" } log_end_msg() { - [ "$1" == "0" ] && echo "." || echo " failed!" + [ "$1" = "0" ] && echo "." || echo " failed!" } log_failure_msg() { echo "$*" @@ -84,6 +84,7 @@ Do_Start() { log_warning_msg "$NAME seems to be already running, nothing to do." exit 0 fi + rm -f "$PIDFILE" start-stop-daemon --start \ --quiet --exec $DAEMON -- $PARAMS sleep $STARTTIME