[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Hobbit logs
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Hobbit logs
- From: "Hobbit User" <hobbit (at) epperson.homelinux.net>
- Date: Mon, 8 Oct 2007 20:48:34 -0400 (EDT)
- Importance: Normal
- References: <05a701c80739$f50dc5f0$398f10ac (at) oad.fcpp.fujitsu.com> <43be87180710081245v138f8bdala97489baaf6d05c2 (at) mail.gmail.com> <29f517690710081333s1e5dce54w8d45db3e4dd6c639 (at) mail.gmail.com> <012001c80a05$8e0c63b0$398f10ac (at) oad.fcpp.fujitsu.com> <62148.24.125.67.188.1191887947.squirrel (at) epperson.homelinux.net> <016201c80a09$432cc4d0$398f10ac (at) oad.fcpp.fujitsu.com>
- User-agent: SquirrelMail/1.4.10a-1.fc7
On Mon, October 8, 2007 20:13, Ryan Jay B. Lapuz wrote:
> So, All i need is to put the script in the /etc/logrotate.d/, is this
> right?
> I really don't understand. I checked my old hobbit server and the
> /etc/logrotate.d/hobbit is already existing. And, I'm sure I didn't
> configure that before, because I don't know how.
>
You said you used a different package to install the old server. It
probably dropped in the logrotate.d/hobbit config file for you, and the
one you used this time didn't.
My point was that you need a cron job (/etc/cron.daily/logrotate), and a
logrotate config file (/etc/logrotate.conf) for logrotate to be running
and "see" the logrotate.d/hobbit config. I think FC6 does set that up by
default (see if you have /var/log/messages.1, etc, if so logrotate is
running). Drop the logrotate.d/hobbit file in, and see if it starts
rotating. If not, look at the other two files.
> ----- Original Message -----
> From: "Hobbit User" <hobbit (at) epperson.homelinux.net>
> To: <hobbit (at) hswn.dk>
> Sent: Tuesday, October 09, 2007 7:59 AM
> Subject: Re: [hobbit] Hobbit logs
>> On Mon, October 8, 2007 19:47, Ryan Jay B. Lapuz wrote:
>>>
>>> I'm running Hobbit 4.2.0 w/ all-in-one patch to Fedora Core 6. Thanks
>>> for
>>> your help Gary and Steve.
>>>
>>
>> So, to sum up, you need
>> /etc/cron.daily/logrotate
>> /etc/logrotate.conf
>> /etc/logrotate.d/hobbit
>> all set up to have your hobbit logs rotated. Anything you're not sure
>> of,
>> look at those on the server where the logs are getting rotated now.