Bug 76791 - cups logrotate
cups logrotate
Product: Red Hat Linux
Classification: Retired
Component: cups (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Depends On:
  Show dependency treegraph
Reported: 2002-10-26 15:34 EDT by Need Real Name
Modified: 2008-05-01 11:38 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-04-09 12:07:21 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2002-10-26 15:34:59 EDT
Cups has internal logrotation set, what makes log rotatiuon inconsistent with
the rest of the system,
The best way is to set 

MaxLogSize 0

in /etc/cups/cupsd.conf  and rotate files using script in /etc/logrotate.d/

/var/log/cups/*.log {
    /etc/init.d/cups restart >/dev/null` 2>&1 || true

This will make log rotation more consistent.
Comment 1 Need Real Name 2002-10-26 15:39:18 EDT
In addition:
/etc/init.d/cups restart >/dev/null 2>&1 || true
should not be used in scrip because 
this will start cups even if it should not be started.

The best way is to use pid, put cups seems does not create such file
in /var/run/ directory.
Comment 2 Tim Waugh 2002-11-08 09:53:05 EST
This is fixed in cups-1.1.15-13, which will show up in rawhide shortly.
Comment 3 giulioo 2002-12-06 17:28:01 EST
cups logs are by default *_log and not *.log, so cups.logrotate in rawhide needs
to be corrected.

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