[ic] IC 5.4 Log rotation

Bill Carr bill at worldwideimpact.com
Mon Mar 6 20:19:53 EST 2006


On Mar 6, 2006, at 6:50 PM, Steve Graham wrote:

> Hello,
>
> Anyone care to share their log rotation scripts for the main  
> catalog, and sub catalogs - I have some preliminary scripts, but  
> would like a comparison - can't seem to find the old RedHat scripts.
>
> I'm currently using syslog-ng, which uses the definitions in  
> logrotate.d
>
> I had an issue when I did not re-create the error.log file in /usr/ 
> local/interchange after to rotation.
> Not sure if this is an error, or I did not have the directory  
> rights set correctly.
/var/log/interchange/*.log {
         size 1000k
         missingok
         rotate 5
         notifempty
         sharedscripts
         postrotate
            if [ -f /var/run/interchange/interchange.pid ]; then \
              if [ -x /usr/sbin/invoke-rc.d ]; then \
                 invoke-rc.d interchange restart > /dev/null; \
              else \
                 /etc/init.d/interchange restart > /dev/null; \
              fi; \
            fi;
         endscript

}

Bill Carr
bill at worldwideimpact.com




More information about the interchange-users mailing list