summaryrefslogtreecommitdiffstats
path: root/main/asterisk/asterisk.logrotate
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-09-02 09:13:14 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-09-02 09:13:14 +0000
commit61be22bdd52ac77d2201029214fe47243bf3f184 (patch)
tree17757936a299384ae7a92d1335f10f81192b408f /main/asterisk/asterisk.logrotate
parent5318c56c869d95eb8899b4dad06cf4563187e545 (diff)
downloadaports-61be22bdd52ac77d2201029214fe47243bf3f184.tar.bz2
aports-61be22bdd52ac77d2201029214fe47243bf3f184.tar.xz
main/asterisk: added logrotate script
fixes #85
Diffstat (limited to 'main/asterisk/asterisk.logrotate')
-rw-r--r--main/asterisk/asterisk.logrotate17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/asterisk/asterisk.logrotate b/main/asterisk/asterisk.logrotate
new file mode 100644
index 000000000..30836c5c1
--- /dev/null
+++ b/main/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
+}
+