ngircd.init: Make sure no stale PID file is left over
authorAlexander Barton <alex@barton.de>
Sat, 26 Oct 2013 19:34:56 +0000 (21:34 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 26 Oct 2013 19:34:56 +0000 (21:34 +0200)
contrib/Debian/ngircd.init

index 8639e22..5c8c46c 100755 (executable)
@@ -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