logrotate - hobbit
Brian Lynch
brianlynch at gmail.com
Mon May 23 07:16:29 CEST 2005
For anyone using 'logrotate', the following file will rotate all the hobbit
logs.
Create the file as logrotate.cfg:
# Configuration file for logrotate application
#
# Add the following line to cron:
# 0 8 * * * /usr/sbin/logrotate [hobbit directory]/server/etc/logrotate.cfg
#
# Global options
compress
/var/log/hobbit/bbcombotest.log {
missingok
weekly
rotate 5
}
/var/log/hobbit/bb-display.log {
missingok
weekly
rotate 5
}
/var/log/hobbit/bb-retest.log {
missingok
weekly
rotate 5
}
/var/log/hobbit/enadis.log {
missingok
weekly
rotate 5
}
/var/log/hobbit/history.log {
missingok
weekly
rotate 5
}
/var/log/hobbit/hobbitd.log {
missingok
weekly
rotate 5
postrotate
/bin/kill -HUP `cat /var/log/hobbit/hobbitd.pid`
endscript
}
/var/log/hobbit/hobbitlaunch.log {
missingok
weekly
rotate 5
postrotate
/bin/kill -HUP `cat /var/log/hobbit/hobbitlaunch.pid`
endscript
}
/var/log/hobbit/larrd-data.log {
missingok
weekly
rotate 5
}
/var/log/hobbit/larrd-status.log {
missingok
weekly
rotate 5
}
/var/log/hobbit/page.log {
missingok
weekly
rotate 5
}
/var/log/hobbit/purple.log {
missingok
weekly
rotate 5
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20050522/e712d27f/attachment.html>
More information about the Xymon
mailing list