X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=contrib%2FDebian%2Fngircd.init;h=8127e8fddef192ca57a46f7f6a7f26010193eb60;hb=a1ce3fc779c66f1febcc4c861cfd593a1ab48002;hp=8639e2295b9203550557341eb0601210865fe0c9;hpb=e2f09213bcef479e7b3a35d67b1cc6b76f2205fb;p=ngircd.git diff --git a/contrib/Debian/ngircd.init b/contrib/Debian/ngircd.init index 8639e229..8127e8fd 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-2013 Alexander Barton +# Copyright 2008-2015 Alexander Barton # ### BEGIN INIT INFO @@ -37,7 +37,7 @@ 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