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=e5507473bfa54d0258dbb8eae7238cb8a2ef8981;hb=0556aa19011bb16e58bf436fc0199e18c4f3ec21;hpb=5f1e43416a7ff8185928ce8538b8d0826c61b93f diff --git a/contrib/Debian/ngircd.init b/contrib/Debian/ngircd.init index e5507473..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 # Required-Start: $network $remote_fs -# Required-Stop: +# 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