[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] logrotate
- Subject: [cobalt-users] logrotate
- From: "Adam Knowles" <adam@xxxxxxxxxxxxxxx>
- Date: Thu Oct 11 15:02:17 2001
- Organization: Connectpoint New Media
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Quick question!
I've used a script posted to this group a while back, that creates an
all-sites-rotate file in the logrotate.d directory, in place of the
individual site1, site18 files that the Raq would generate for itself.
This is so all sites have the same logrotate settings.
This works great, except that after a rotation, new logfiles are created
but don't get written to when they should be! i.e. access_log gets
rotated to access_log.1 (since each site keeps separate logs on my Raq),
and a new 0 length access_log is created - but it just stays at 0 even
after accessing the relevant site.
Restarting the HTTPd fixes the problem. So one solution would be to
restart HTTPd once all the logfiles are rotated. I'd prefer this to
doing a POSTROTATE after each individual site is finished.
I can't figure out how to execute a restart of the daemon outside of any
individual postrotate section, ideally in the logrotate.conf somewhere
after the include of logrotate.d
Is this the answer anyway, or is there an issue with the
all-sites-rotate not having the user/group permissions that the separate
site18 type files would have? Don't really understand this whole thing
:( !!
Any help much appreciated.
---
Adam Knowles
Internet Developer, Connectpoint New Media
Tel: 0161 817 4200
Fax: 0161 817 4201
E-mail: adam@xxxxxxxxxxxxxxxxxx
This e-mail has been sent in the strictest confidence and should only be
read by the intended recipient. Therefore, any distribution, use or
copying of the information other than the named addressee(s) is
prohibited and may be illegal.
Please notify the sender immediately by return if you have received this
message in error.