Browse Source

add logrotate and rsyslog confs

3.17
karl anderson 13 years ago
parent
commit
5ddcc1d5a9
8 changed files with 47 additions and 0 deletions
  1. +14
    -0
      system/logrotate.d/2600hz-platform.conf
  2. +14
    -0
      system/logrotate.d/bigcouch.conf
  3. +14
    -0
      system/logrotate.d/kamailio.conf
  4. +2
    -0
      system/rsyslog.d/10-kamailio.conf
  5. +2
    -0
      system/rsyslog.d/20-haproxy.conf
  6. +1
    -0
      system/rsyslog.d/90-2600hzPlatform.conf
  7. +0
    -0
      system/security/limits.d/bigcouch.limits.conf
  8. +0
    -0
      system/security/limits.d/freeswitch.limits.conf

+ 14
- 0
system/logrotate.d/2600hz-platform.conf View File

@ -0,0 +1,14 @@
/var/log/2600hz-platform.log {
daily
missingok
notifempty
rotate 31
create
compress
delaycompress
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
/bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}

+ 14
- 0
system/logrotate.d/bigcouch.conf View File

@ -0,0 +1,14 @@
/var/log/bigcouch.log {
daily
missingok
notifempty
rotate 31
create
compress
delaycompress
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
/bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}

+ 14
- 0
system/logrotate.d/kamailio.conf View File

@ -0,0 +1,14 @@
/var/log/kamailio.log {
daily
missingok
notifempty
rotate 31
create
compress
delaycompress
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
/bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}

+ 2
- 0
system/rsyslog.d/10-kamailio.conf View File

@ -0,0 +1,2 @@
if $programname == 'kamailio' then /var/log/kamailio.log
& ~

+ 2
- 0
system/rsyslog.d/20-haproxy.conf View File

@ -0,0 +1,2 @@
if $programname == 'haproxy' then /var/log/haproxy.log
& ~

+ 1
- 0
system/rsyslog.d/90-2600hzPlatform.conf View File

@ -0,0 +1 @@
local0.* /var/log/2600hz-platform.log

system/bigcouch.limits.conf → system/security/limits.d/bigcouch.limits.conf View File


system/freeswitch.limits.conf → system/security/limits.d/freeswitch.limits.conf View File


Loading…
Cancel
Save