summaryrefslogtreecommitdiff
path: root/social/asterisk/asterisk.logrotated
diff options
context:
space:
mode:
Diffstat (limited to 'social/asterisk/asterisk.logrotated')
-rw-r--r--social/asterisk/asterisk.logrotated10
1 files changed, 10 insertions, 0 deletions
diff --git a/social/asterisk/asterisk.logrotated b/social/asterisk/asterisk.logrotated
new file mode 100644
index 000000000..f03d0acd3
--- /dev/null
+++ b/social/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
+}
+