summaryrefslogtreecommitdiff
path: root/pcr/spectrum/logrotate.spectrum
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/spectrum/logrotate.spectrum')
-rw-r--r--pcr/spectrum/logrotate.spectrum10
1 files changed, 10 insertions, 0 deletions
diff --git a/pcr/spectrum/logrotate.spectrum b/pcr/spectrum/logrotate.spectrum
new file mode 100644
index 000000000..ae52ff156
--- /dev/null
+++ b/pcr/spectrum/logrotate.spectrum
@@ -0,0 +1,10 @@
+/var/log/spectrum/*.log {
+ notifempty
+ missingok
+ sharedscripts
+ postrotate
+ for P in /var/run/spectrum/*.pid; do
+ /bin/kill -HUP `cat "$P" 2>/dev/null` 2>/dev/null || true
+ done
+ endscript
+}