From: Darold Gilles Date: Fri, 15 Jan 2016 21:29:35 +0000 (+0100) Subject: Add remove of pid file at normal ending. X-Git-Tag: v7.3~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c19a6069203899a227344c4d210b984e5a1cc80;p=pgbadger Add remove of pid file at normal ending. --- diff --git a/pgbadger b/pgbadger index cb729ee..9507f34 100755 --- a/pgbadger +++ b/pgbadger @@ -1695,6 +1695,9 @@ $td = timediff($t2, $t1); $td = timediff($t2, $t0); &logmsg('DEBUG', "the total execution time took: " . timestr($td)); +# Remove pidfile +unlink("$PID_DIR/pgbadger.pid"); + exit 0; #-------------------------------------------------------------------------------