From: Tilghman Lesher Date: Wed, 23 Jul 2008 17:14:56 +0000 (+0000) Subject: Add logrotate script for Asterisk X-Git-Tag: 1.6.1-beta1~359 X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=commitdiff_plain;h=70a0b7fcd19303c7756501cf4e5dee63cccf4b6d 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 --- diff --git a/contrib/scripts/asterisk.logrotate b/contrib/scripts/asterisk.logrotate new file mode 100644 index 0000000..f832570 --- /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