summaryrefslogtreecommitdiff
path: root/pcr/spectrum/logrotate.spectrum
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2013-02-15 12:58:31 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2013-02-15 12:58:31 -0500
commit3b2e0940912977aadb95b4b19f7f46c18b6ae93e (patch)
tree10ac82b7c5b8e6af2722376600214cc9ce74e558 /pcr/spectrum/logrotate.spectrum
parent20e3130d771b0f74af0ef0fc0b36c5fa184e7e8f (diff)
downloadabslibre-3b2e0940912977aadb95b4b19f7f46c18b6ae93e.tar.gz
abslibre-3b2e0940912977aadb95b4b19f7f46c18b6ae93e.tar.bz2
abslibre-3b2e0940912977aadb95b4b19f7f46c18b6ae93e.zip
Adding poco, libpurple-minimal and spectrum to pcr
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
+}