Bug 227369

Summary: cupsd not reloading after logrotate -> logs go to backup file
Product: [Fedora] Fedora Reporter: Thomas Springer <th.springer>
Component: cupsAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.2.7-8.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-13 17:34:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 150225    

Description Thomas Springer 2007-02-05 17:13:06 UTC
Description of problem:

When logrotate finishes, cupsd appends logs to <logfile>.1 and doesn't use newly 
created logfile until the service is restarted.

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=215023
reveals why this is the case, so i guess my problem is already known.

The RPM-changelog mentions bug 215024, but i'am not allowed to access this 
information :-/

What is it that cupsd cant't get reloaded by logrotate?

Version-Release number of selected component (if applicable):
cups-1.2.7-1.7.fc6

How reproducible:
Not hard.

Steps to Reproduce:
1. rotate logs
2. ll -t /var/log/cups/


BTW, MaxLogSize=2000000000 is afaics not the upstream default and I would like to 
know why 2G should be a good idea.

Comment 1 Tim Waugh 2007-02-05 17:17:04 UTC
Okay, the solution to this is to get CUPS to rotate its own logs and leave
logrotate out of it altogether.

It's no good trying to get logrotate to reload CUPS because it'll restart any
long-running print jobs, possibly wasting hundreds of sheets of paper.

Comment 2 Thomas Springer 2007-02-05 17:35:18 UTC
(In reply to comment #1)
> Okay, the solution to this is to get CUPS to rotate its own logs and leave
> logrotate out of it altogether.
Sounds good.

Thanks for your immediate reply..do you have a comment on the MaxLogSize entry  in 
cupsd.conf, please?

Comment 3 Tim Waugh 2007-02-05 17:49:10 UTC
We'll drop the size down so that cups ends up rotating its own logs.  It was set
at 2Gb just to avoid LFS problems IIRC.

Comment 4 Tim Waugh 2007-02-13 17:34:02 UTC
Fixed in devel: 1.2.7-8.fc7.