Bug 227369 - cupsd not reloading after logrotate -> logs go to backup file
cupsd not reloading after logrotate -> logs go to backup file
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: cups (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
:
Depends On:
Blocks: FC7Target
  Show dependency treegraph
 
Reported: 2007-02-05 12:13 EST by Thomas Springer
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 1.2.7-8.fc7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-02-13 12:34:02 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Thomas Springer 2007-02-05 12:13:06 EST
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 12:17:04 EST
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 12:35:18 EST
(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 12:49:10 EST
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 12:34:02 EST
Fixed in devel: 1.2.7-8.fc7.

Note You need to log in before you can comment on or make changes to this bug.