Browse Source

Fixed freeswitch logrotate.d file

Was not rotating properly due to:
incorrect freeswitch.pid location
prerotate instead of postrotate HUP to FS
3.17
Jeremy Ai 12 years ago
parent
commit
4e637edec5
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      system/logrotate.d/freeswitch.conf

+ 3
- 5
system/logrotate.d/freeswitch.conf View File

@ -2,12 +2,10 @@
daily daily
rotate 31 rotate 31
nocreate nocreate
missingok
maxage 5
compress
compress
delaycompress delaycompress
sharedscripts sharedscripts
prerotate
/bin/kill -HUP `cat /usr/local/freeswitch/run/freeswitch.pid 2> /dev/null` 2> /dev/null || true
postrotate
/bin/kill -HUP `cat /var/run/freeswitch/freeswitch.pid 2> /dev/null` 2> /dev/null || true
endscript endscript
} }

Loading…
Cancel
Save