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.dI 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
suppressed
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.