aboutsummaryrefslogtreecommitdiff
path: root/network/asterisk/logrotate.asterisk
diff options
context:
space:
mode:
authorAlan Hicks <alan@lizella.net>2010-05-11 20:01:29 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:01:29 +0200
commita98998a7f9403fdd57d512e2ca848155f5973b57 (patch)
tree22844bce7626f62cbfada32e9eb4700ce23e77f9 /network/asterisk/logrotate.asterisk
parente728769016e769f36d650858c932e047268dd315 (diff)
network/asterisk: Added to 12.0 repository
Diffstat (limited to 'network/asterisk/logrotate.asterisk')
-rw-r--r--network/asterisk/logrotate.asterisk8
1 files changed, 8 insertions, 0 deletions
diff --git a/network/asterisk/logrotate.asterisk b/network/asterisk/logrotate.asterisk
new file mode 100644
index 000000000000..f2281a71bc3d
--- /dev/null
+++ b/network/asterisk/logrotate.asterisk
@@ -0,0 +1,8 @@
+/var/log/asterisk/messages /var/log/asterisk/*log {
+ missingok
+ rotate 5
+ weekly
+ postrotate
+ /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
+ endscript
+}