diff --git a/system/logrotate.d/2600hz-platform.conf b/system/logrotate.d/2600hz-platform.conf index adc44fd..cdb2a4e 100644 --- a/system/logrotate.d/2600hz-platform.conf +++ b/system/logrotate.d/2600hz-platform.conf @@ -3,6 +3,7 @@ missingok notifempty rotate 31 + maxage 5 create compress delaycompress diff --git a/system/logrotate.d/bigcouch.conf b/system/logrotate.d/bigcouch.conf index 68291d0..12827ad 100644 --- a/system/logrotate.d/bigcouch.conf +++ b/system/logrotate.d/bigcouch.conf @@ -3,6 +3,7 @@ missingok notifempty rotate 31 + maxage 5 create compress delaycompress diff --git a/system/logrotate.d/freeswitch.conf b/system/logrotate.d/freeswitch.conf new file mode 100644 index 0000000..eb77652 --- /dev/null +++ b/system/logrotate.d/freeswitch.conf @@ -0,0 +1,13 @@ +/var/log/freeswitch/*.log { + daily + rotate 31 + nocreate + missingok + maxage 5 + compress + delaycompress + sharedscripts + prerotate + /bin/kill -HUP `cat /usr/local/freeswitch/run/freeswitch.pid 2> /dev/null` 2> /dev/null || true + endscript +} diff --git a/system/logrotate.d/kamailio.conf b/system/logrotate.d/kamailio.conf index f3b282b..621e1ba 100644 --- a/system/logrotate.d/kamailio.conf +++ b/system/logrotate.d/kamailio.conf @@ -3,6 +3,7 @@ missingok notifempty rotate 31 + maxage 5 create compress delaycompress