Results 1 to 3 of 3
-
06-22-2009, 06:22 AM #1New Member
- Join Date
- Jun 2009
- Posts
- 2
Small problem with our logrotate...
Well, not a problem really, more of an annoyance.
This is our logrotate definition for Apache's logs folder:
Code:/var/log/httpd/*log { rotate 5 missingok notifempty size=100M sharedscripts postrotate /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true endscript }
Cheers
-
06-23-2009, 10:47 AM #2Junior Guru Wannabe
- Join Date
- May 2008
- Posts
- 43
I'm not certain it's your problem, but the man page shows it as "size 100M", without the "="...
Dan Hildebrandt, Developer / Support, WebGroup Media LLC. - http://twitter.com/cerb5
Cerberus Helpdesk 5.x is a CRM toolkit. Remember anything about anybody, swiftly reply to a flood of e-mail,
capture feedback organically, track time, flag opportunities, share tasks, and more. http://www.cerberusweb.com/
-
06-23-2009, 02:15 PM #3WHT Addict
- Join Date
- Aug 2008
- Location
- Shoreline WA
- Posts
- 160
I do actually see it both with the = and without for an out of the box CentOS 5.3 system, so I think both work. It might be more of an issue of, daily, the logrotate program is ran, and if when it checks the logs, they are larger than the given size, then it rotates them. This gives the varying sizes that you see, due to the fact it does not check every minute, but once a day.
Last edited by Jonathan Kinney; 06-23-2009 at 02:16 PM. Reason: typo
Similar Threads
-
logrotate problem
By kennlee in forum Hosting Security and TechnologyReplies: 3Last Post: 06-13-2004, 02:09 PM -
Small Gearhost problem...anyone else have this problem?
By shibby in forum Web HostingReplies: 4Last Post: 02-17-2002, 11:20 PM -
Logrotate
By Omair Haroon in forum Dedicated ServerReplies: 7Last Post: 02-11-2002, 06:18 PM -
Webalizer & logrotate problem
By Franki in forum Dedicated ServerReplies: 6Last Post: 09-21-2001, 06:04 PM -
logrotate problem
By Starhost in forum Dedicated ServerReplies: 0Last Post: 08-09-2001, 06:27 PM