From 6a8517b247a34a27b437ad64d6ae7343f9592d46 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Wed, 23 Jul 2008 17:15:46 +0000 Subject: [PATCH] Merged revisions 132977 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r132977 | tilghman | 2008-07-23 12:14:56 -0500 (Wed, 23 Jul 2008) | 6 lines 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/branches/1.6.0@132978 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- contrib/scripts/asterisk.logrotate | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 contrib/scripts/asterisk.logrotate diff --git a/contrib/scripts/asterisk.logrotate b/contrib/scripts/asterisk.logrotate new file mode 100644 index 0000000000..f83257060a --- /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