[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] RaQ4 - Logrotate problems rotating
- Subject: Re: [cobalt-users] RaQ4 - Logrotate problems rotating
- From: ger.oshea@xxxxxxxxxxxx
- Date: Tue Nov 27 02:33:10 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Jay,
Your a star, I changed the size settings on sites in logrotate.d and
logrotate.onboot to 400M so it won't rotate every night, came in this
mourning, and everything is as it should be.
I have awstats clearing web.log every night, so web.log should never exceed
the 400M.
Again thanks for taking the time out to reply to my post, I really
appreciate it.
I came across the following link as well in my travels, might be helpful
for anyone else that reads this post
http://nodevice.com/sections/ManIndex/man0735.html
Regards,
Ger O' Shea
Jay Summers
<jay@xxxxxxxxxxxxxxxxxxx To: <cobalt-users@xxxxxxxxxxxxxxx>
om> cc:
Sent by: Subject: Re: [cobalt-users] RaQ4 - Logrotate problems rotating
cobalt-users-admin@list.
cobalt.com
26/11/01 07:07 PM
Please respond to
cobalt-users
> How do I stop logrotate gunzipping web.log every night?
> Could someone explain how logrotate works - explain it to me like I'm a
two
> year old or else point me to a good tutorial on the web.
Logrotate uses the compress option to gunzip the logs.
/home/sites/site*/logs/web.log {
daily
compress
size 10M
}
Just remove the compress option in your /etc/logrotate.d/site# and copy it
over to /etc/logroate.onboot/site#
If you would like more info about the configuration of logrotate, type man
logrotate at the shell prompt.
One caveat, the GUI will overwrite these changes if you change the site
quota. The only way around it is to edit the Perl Modules for the GUI.
HTH,
j
--
http://www.bizmanuals.com
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users