From: Dave Olson Date: Wed, 27 Sep 2017 16:01:37 +0000 (-0400) Subject: debian: Fix logrotate when FRR is not running X-Git-Tag: frr-4.0-dev~259^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=83aadaa68db9cbf58b1bbeea8a747a472d85ab18;p=matthieu%2Ffrr.git debian: Fix logrotate when FRR is not running Fix the logrotate script to complete successfully even if FRR is not currently running. Signed-off-by: Dave Olson --- diff --git a/debian/frr.logrotate b/debian/frr.logrotate index 9a1fa2149b..2b4acd89c7 100644 --- a/debian/frr.logrotate +++ b/debian/frr.logrotate @@ -22,6 +22,6 @@ pids="$pids $(cat /var/run/frr/$i.pid)" fi done - [ -n "$pids" ] && kill -USR1 $pids + [ -n "$pids" ] && kill -USR1 $pids || true endscript }