summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-07-23 17:14:56 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-07-23 17:14:56 +0000
commit70a0b7fcd19303c7756501cf4e5dee63cccf4b6d (patch)
tree56c1befe0b4d662f0996803f55696a17de98d285 /contrib
parent100ae727de1061678c1428a9cab10c660b55d9cc (diff)
Add logrotate script for Asterisk
(closes issue #13085) Reported by: pabelanger Patches: logrotate uploaded by pabelanger (license 224) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@132977 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'contrib')
-rw-r--r--contrib/scripts/asterisk.logrotate13
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/scripts/asterisk.logrotate b/contrib/scripts/asterisk.logrotate
new file mode 100644
index 000000000..f83257060
--- /dev/null
+++ b/contrib/scripts/asterisk.logrotate
@@ -0,0 +1,13 @@
+/var/log/asterisk/debug /var/log/asterisk/console /var/log/asterisk/full /var/log/asterisk/debug /var/log/asterisk/*log {
+ weekly
+ missingok
+ rotate 52
+ compress
+ delaycompress
+ notifempty
+ create 640 root root
+ sharedscripts
+ postrotate
+ /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
+ endscript
+} \ No newline at end of file