[hobbit] logrotate - hobbit

Gary Baluha gumby3203 at gmail.com
Wed Oct 25 19:32:19 CEST 2006


I ran across the following thread when looking up some info on setting up
logrotate (linux) for Hobbit.
I'm curious, though... The man page for hobbitd says that SIGHUP will cause
hobbitd to "Re-read the bb-hosts configuration file."
Does that mean the example below with the postrotate command will actually
work as intended, or will it only have hobbitd re-read the config file?


Re: [hobbit] logrotate - hobbit
------------------------------

   - *To*: hobbit (at) hswn.dk
   - *Subject*: Re: [hobbit] logrotate - hobbit
   - *From*: Rich Smrcina <rsmrcina (at) wi.rr.com>
   - *Date*: Mon, 23 May 2005 00:26:00 -0500
   - *References*:
<b537f65105052222162e6c25d1 at mail.gmail.com<http://www.hswn.dk/hobbiton/2005/05/msg00283.html>
   >
   - *User-agent*: Mozilla Thunderbird 1.0.2 (X11/20050317)

 ------------------------------

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: (414)491-6001
Ans Service:  (360)715-2467
rich.smrcina at vmassist.com


Catch the WAVV!  http://www.wavv.org
WAVV 2005 - Colorado Springs - May 20-24, 2005
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20061025/aed3723a/attachment.html>


More information about the Xymon mailing list