summaryrefslogtreecommitdiff
path: root/pcr/asterisk/asterisk.logrotated
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-18 01:56:34 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-18 01:56:34 +0000
commit8185891e28635bdb83fdf4ba4391030912dae596 (patch)
tree66a946535bdd228514750233b2cc99dd1866ff64 /pcr/asterisk/asterisk.logrotated
parent60a11f87366fdfbd114cdc91ff813518858e5f8d (diff)
Tue Feb 18 01:56:27 UTC 2014
Diffstat (limited to 'pcr/asterisk/asterisk.logrotated')
-rw-r--r--pcr/asterisk/asterisk.logrotated10
1 files changed, 10 insertions, 0 deletions
diff --git a/pcr/asterisk/asterisk.logrotated b/pcr/asterisk/asterisk.logrotated
new file mode 100644
index 000000000..f03d0acd3
--- /dev/null
+++ b/pcr/asterisk/asterisk.logrotated
@@ -0,0 +1,10 @@
+/var/log/asterisk/*_log /var/log/asterisk/messages {
+ create 640 asterisk asterisk
+ compress
+ missingok
+ notifempty
+ postrotate
+ /usr/sbin/asterisk -rx "logger reload" 1>/dev/null || true
+ endscript
+}
+