summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaco Kroon <jaco@uls.co.za>2023-07-09 21:46:19 +0200
committerJoonas Niilola <juippis@gentoo.org>2023-08-11 11:12:05 +0300
commit959deea778d9aa4f174493f2a9d390d14a3c4df1 (patch)
tree3e107e45dbdd7d49ae37a6ae47d1b8bba2324888 /net-misc/asterisk-base/files/logrotate-1
parentdev-cpp/highway: keyword 1.0.5 for ~alpha (diff)
downloadgentoo-959deea778d9aa4f174493f2a9d390d14a3c4df1.tar.gz
gentoo-959deea778d9aa4f174493f2a9d390d14a3c4df1.tar.bz2
gentoo-959deea778d9aa4f174493f2a9d390d14a3c4df1.zip
net-misc/asterisk-base: new package, add 1
Closes: https://bugs.gentoo.org/907060 Signed-off-by: Jaco Kroon <jaco@uls.co.za> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-misc/asterisk-base/files/logrotate-1')
-rw-r--r--net-misc/asterisk-base/files/logrotate-127
1 files changed, 27 insertions, 0 deletions
diff --git a/net-misc/asterisk-base/files/logrotate-1 b/net-misc/asterisk-base/files/logrotate-1
new file mode 100644
index 000000000000..2286efc1e7e9
--- /dev/null
+++ b/net-misc/asterisk-base/files/logrotate-1
@@ -0,0 +1,27 @@
+/var/log/asterisk/messages {
+ missingok
+ notifempty
+
+ postrotate
+ test -e /run/openrc/softlevel && /etc/init.d/asterisk --quiet status && /usr/sbin/asterisk -rnx "logger reload" || /bin/true
+ test -e /run/systemd/system && systemctl is-active --quiet asterisk.service && /usr/sbin/asterisk -rnx "logger reload" || /bin/true
+ endscript
+}
+
+/var/log/asterisk/debug /var/log/asterisk/full {
+ missingok
+ notifempty
+ daily
+
+ postrotate
+ test -e /run/openrc/softlevel && /etc/init.d/asterisk --quiet status && /usr/sbin/asterisk -rnx "logger reload" || /bin/true
+ test -e /run/systemd/system && systemctl is-active --quiet asterisk.service && /usr/sbin/asterisk -rnx "logger reload" || /bin/true
+ endscript
+}
+
+/var/log/asterisk/cdr-csv/*.csv /var/log/asterisk/cdr-custom/*.csv /var/log/asterisk/queue_log {
+ missingok
+ notifempty
+ weekly
+ rotate 52
+}