Bug#712559: Logrotate do not restart cups
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Package: cups
Version: 1.5.0-16
Severity: normal
Since some days cups fails to restart when the log gets rotated. So the
daemon is logging to deleted files.
I'm not sure if this is a bug of cups but only cups is affected, all
other systems get restarted without problems.
I did some tests with the postrotate section and found out that if I
redirect the output of 'invoke-rc.d --quiet cups force-reload' to mail
everything worked well. If I don't, it will not run properly. That
different behaviour makes it difficult to debug.
However, as you can see, I did not update for a long time now due to bug
638521 (that was closed without getting noticed by me) and 660852 that
really stops me from using newer versions.
- -- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (800, 'unstable'), (600, 'oldstable'), (110, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.9.4 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1) (ignored: LC_ALL set to de_DE)
Shell: /bin/sh linked to /bin/dash
Versions of packages cups depends on:
ii adduser 3.113+nmu3
ii bc 1.06.95-8
pn cups-client <none>
pn cups-common <none>
ii cups-filters 1.0.34-3
pn cups-ppdc <none>
ii debconf [debconf-2.0] 1.5.50
ii ghostscript 9.05~dfsg-6.3
ii libavahi-client3 0.6.31-2
ii libavahi-common3 0.6.31-2
ii libc6 2.17-5
pn libcups2 <none>
pn libcupscgi1 <none>
pn libcupsimage2 <none>
pn libcupsmime1 <none>
pn libcupsppdc1 <none>
ii libdbus-1-3 1.6.12-1
ii libgcc1 1:4.8.1-3
ii libgnutls26 2.12.23-5
ii libgssapi-krb5-2 1.10.1+dfsg-6
ii libkrb5-3 1.10.1+dfsg-6
ii libldap-2.4-2 2.4.31-1+nmu2
ii libpam0g 1.1.3-9
ii libpaper1 1.1.24+nmu2
ii libslp1 1.2.1-9
ii libstdc++6 4.8.1-3
ii libusb-1.0-0 2:1.0.15-1
pn lsb-base <none>
ii poppler-utils 0.18.4-6
ii procps 1:3.3.8-2
ii ssl-cert 1.0.32
Versions of packages cups recommends:
pn avahi-daemon <none>
pn colord <none>
pn cups-driver-gutenprint <none>
ii foomatic-filters 4.0.17-1
ii ghostscript-cups 9.05~dfsg-6.3
Versions of packages cups suggests:
pn cups-bsd <none>
pn cups-pdf <none>
ii foomatic-db 20130609-1
pn hplip <none>
pn smbclient <none>
ii udev 175-7.2
- -- Configuration Files:
/etc/cups/cupsd.conf changed:
LogLevel warn
MaxLogSize 0
SystemGroup lpadmin
Listen localhost:631
Listen /var/run/cups/cups.sock
DefaultAuthType Basic
WebInterface Yes
<Location />
Order allow,deny
</Location>
<Location /admin>
Order allow,deny
</Location>
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
</Location>
<Policy default>
# Job/subscription privacy...
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
<Policy authenticated>
# Job/subscription privacy...
JobPrivateAccess default
JobPrivateValues default
SubscriptionPrivateAccess default
SubscriptionPrivateValues default
# Job-related operations must be done by the owner or an administrator...
<Limit Create-Job Print-Job Print-URI Validate-Job>
AuthType Default
Order deny,allow
</Limit>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# All printer operations require a printer operator to authenticate...
<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
# Only the owner or an administrator can cancel or authenticate a job...
<Limit Cancel-Job CUPS-Authenticate-Job>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
Browsing off
/etc/default/cups changed:
LOAD_LP_MODULE=no
/etc/logrotate.d/cups changed:
/var/log/cups/*log {
daily
missingok
rotate 7
sharedscripts
postrotate
if [ -e /var/run/cups/cupsd.pid ]; then
invoke-rc.d --quiet cups force-reload > /dev/null
fi
endscript
compress
notifempty
create 640 root lpadmin
}
- -- debconf information:
* cupsys/raw-print: true
* cupsys/backend: ipp, socket, usb
- --
Klaus Ethgen http://www.ethgen.ch/
pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <Klaus@Ethgen.de>
Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQGcBAEBCgAGBQJRvr4pAAoJEKZ8CrGAGfasSIEMALqGJO69C4xxeQBNUoatWZ3w
j2kzj7w1hSOq3I2gFXIEAk8mGl72ueu3/9o91O5FvHDZ7uHLjNj+YcOfDufBkTog
D4E+Twib8U8bRaCPQXvK+IbXLuGcdjRAu4xrZqTUgNxXhg1M5ftNkxdLNJmLEryV
aXL80hyimRaRFQG9Ws0+H2Acn6Cf7s7k6lVVIT50ssiK2Mqqmd9pbnR20fpvHq43
8+RBW9TJpwrlhxiJcKCr/AZaGCySP/WLt+CR6PgclCOEv2CSL8YDdc/tEReUutdj
pTeL3fodwkpKA7EswZNv5JyL49MwCQuiNAGK3ZNpYIpYUN3THrHOujMz16vSxRu+
m2ZrYXo75h1XC2ce4QsigSJ3zgDF+rHnx+gX2bEZZPjD6MzmHgrkhBN0x+FSg3g6
GhjBPqKca0HX3V7xxGwlpS3iLXqdtj8jc4KSqX4WUiT92mOapzcjc4UMO2HIh3VM
PGcUez7+8ABv7SVE9TlAJmAhwmWiimGKF06EFETt+A==
=RsPj
-----END PGP SIGNATURE-----
Reply to: