[ic] IC 5.4 Log rotation
Stefan Hornburg
racke at linuxia.de
Tue Mar 7 04:48:22 EST 2006
Bill Carr wrote:
>
> 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
>
> }
Restarting IC isn't necessary, it doesn't keep logs open.
Bye
Racke
More information about the interchange-users
mailing list