[ic] IC 5.4 Log rotation
Mike Heins
mike at perusion.com
Tue Mar 7 09:21:06 EST 2006
Quoting Stefan Hornburg (Racke) (racke at linuxia.de):
> 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.
The debug log being the only exception to that.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295 tollfree 800-949-1889 <mike at perusion.com>
When the only tool you have is a hammer, all your problems tend to look
like nails. -- Abraham Maslow
More information about the interchange-users
mailing list