From 4e637edec5c2a10c7eae7d20ff8a1b4fb4ec173d Mon Sep 17 00:00:00 2001 From: Jeremy Ai Date: Wed, 29 Jan 2014 11:23:01 -0800 Subject: [PATCH] Fixed freeswitch logrotate.d file Was not rotating properly due to: incorrect freeswitch.pid location prerotate instead of postrotate HUP to FS --- system/logrotate.d/freeswitch.conf | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/system/logrotate.d/freeswitch.conf b/system/logrotate.d/freeswitch.conf index eb77652..69d1010 100644 --- a/system/logrotate.d/freeswitch.conf +++ b/system/logrotate.d/freeswitch.conf @@ -2,12 +2,10 @@ daily rotate 31 nocreate - missingok - maxage 5 - compress + compress delaycompress 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 }