]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
guardian.logrotate: Reload guardian after log rotation.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 6 Dec 2014 14:39:34 +0000 (15:39 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 6 Dec 2014 14:39:34 +0000 (15:39 +0100)
config/guardian/guardian.logrotate

index 8901bac54c71499173f5dac1a47e1ac026b8c39e..689966c46033f805b379a36ff99efdb2591ab799 100644 (file)
@@ -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
 }