summaryrefslogtreecommitdiff
path: root/pcr/asterisk/asterisk.logrotated
diff options
context:
space:
mode:
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
+}
+