Xymon Mailing List Archive search

logrotate - hobbit

list Rich Smrcina
Mon, 23 May 2005 00:26:00 -0500
Message-Id: <user-0d10e85cf40a@xymon.invalid>

Great stuff Brian.  Thanks for contributing.

Brian Lynch wrote:
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
}
-- 
Rich Smrcina
VM Assist, Inc.
Main: (262)392-2026
Cell: (XXX)XXX-XXXX
Ans Service:  (360)715-2467
user-61add9955ef9@xymon.invalid

Catch the WAVV!  http://www.wavv.org
WAVV 2005 - Colorado Springs - May 20-24, 2005