]> arthur.barton.de Git - ngircd-alex.git/commitdiff
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 8639e2295b9203550557341eb0601210865fe0c9..5c8c46cab82341f20f3d02a20449299db98911f5 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