Bug#740380: logrotate warnings when running under systemd
Package: cups-daemon
Version: 1.7.1-7
Followup-For: Bug #740380
Dear Maintainer,
Hello,
The following patch is less intrusive and just solves the problem,
namely that with systemd messages are sent to standard error.
Cheers,
Itai.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (600, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages cups-daemon depends on:
ii adduser 3.113+nmu3
ii bc 1.06.95-8
ii dpkg 1.17.6
ii init-system-helpers 1.18
ii libavahi-client3 0.6.31-4
ii libavahi-common3 0.6.31-4
ii libc6 2.18-4
ii libcups2 1.7.1-7
ii libcupsmime1 1.7.1-7
ii libdbus-1-3 1.8.0-2
ii libgnutls26 2.12.23-13
ii libgssapi-krb5-2 1.12+dfsg-2
ii libpam0g 1.1.8-2
ii libpaper1 1.1.24+nmu2
ii libsystemd-daemon0 204-7
ii lsb-base 4.1+Debian12
ii procps 1:3.3.9-4
ii ssl-cert 1.0.33
Versions of packages cups-daemon recommends:
ii avahi-daemon 0.6.31-4
ii colord 1.0.6-1
ii cups-browsed 1.0.46-1
Versions of packages cups-daemon suggests:
ii cups 1.7.1-7
ii cups-bsd 1.7.1-7
ii cups-client 1.7.1-7
ii cups-common 1.7.1-7
ii cups-filters [foomatic-filters] 1.0.46-1
ii cups-pdf 2.6.1-9
ii cups-ppdc 1.7.1-7
ii cups-server-common 1.7.1-7
pn foomatic-db-compressed-ppds | foomatic-db <none>
ii ghostscript 9.05~dfsg-8+b1
pn hplip <none>
ii poppler-utils 0.22.5-4
ii printer-driver-gutenprint 5.2.9-1
pn printer-driver-hpcups <none>
pn smbclient <none>
ii udev 204-7
-- no debconf information
--- ./cups-1.7.1/debian/cups-daemon.logrotate 2014-03-06 11:28:01.943676596 +0100
+++ ./cups-1.7.1.old/debian/cups-daemon.logrotate 2014-01-30 16:21:09.000000000 +0100
@@ -5,14 +5,14 @@
sharedscripts
prerotate
if [ -e /var/run/cups/cupsd.pid ]; then
- invoke-rc.d --quiet cups stop > /dev/null 2>&1
+ invoke-rc.d --quiet cups stop > /dev/null
touch /var/run/cups/cupsd.stopped
fi
endscript
postrotate
if [ -e /var/run/cups/cupsd.stopped ]; then
rm /var/run/cups/cupsd.stopped
- invoke-rc.d --quiet cups start > /dev/null 2>&1
+ invoke-rc.d --quiet cups start > /dev/null
sleep 10
fi
endscript
Reply to: