X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=contrib%2FDebian%2Fngircd.init;h=5c8c46cab82341f20f3d02a20449299db98911f5;hp=f308dd2a001614dd25058027be72d89ced644535;hb=3d7aa9f90626bb16ef9db9c9c739ba748976448c;hpb=c3a8d6a73edd66a26ec731dd4bb02a8c272e3d9c;ds=sidebyside diff --git a/contrib/Debian/ngircd.init b/contrib/Debian/ngircd.init index f308dd2a..5c8c46ca 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-2013 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,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() { @@ -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