summaryrefslogtreecommitdiffstats
path: root/testing/asterisk/asterisk.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'testing/asterisk/asterisk.logrotate')
-rw-r--r--testing/asterisk/asterisk.logrotate17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/asterisk/asterisk.logrotate b/testing/asterisk/asterisk.logrotate
new file mode 100644
index 000000000..30836c5c1
--- /dev/null
+++ b/testing/asterisk/asterisk.logrotate
@@ -0,0 +1,17 @@
+/var/log/asterisk/messages /var/log/asterisk/*log {
+ missingok
+ rotate 5
+ weekly
+ create 0640 asterisk asterisk
+ postrotate
+ /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
+ endscript
+}
+
+/var/log/asterisk/cdr-csv/*csv {
+ missingok
+ rotate 5
+ monthly
+ create 0640 asterisk asterisk
+}
+