From: Stefan Schantl Date: Sat, 6 Dec 2014 14:39:34 +0000 (+0100) Subject: guardian.logrotate: Reload guardian after log rotation. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=666d48f5eb4574d61a08b0a75ce9baea4832146c;p=people%2Fstevee%2Fipfire-2.x.git guardian.logrotate: Reload guardian after log rotation. --- diff --git a/config/guardian/guardian.logrotate b/config/guardian/guardian.logrotate index 8901bac54c..689966c460 100644 --- a/config/guardian/guardian.logrotate +++ b/config/guardian/guardian.logrotate @@ -1,8 +1,11 @@ -/var/log/guardian.log { +/var/log/guardian/guardian.log { weekly rotate 4 copytruncate compress notifempty missingok + postrotate + /usr/local/bin/guardianctrl reload &>/dev/null || true + endscript }