diff -Nru cups-1.6.1/debian/changelog cups-1.6.1/debian/changelog --- cups-1.6.1/debian/changelog 2012-12-03 15:03:41.000000000 +0100 +++ cups-1.6.1/debian/changelog 2013-04-23 14:46:42.000000000 +0200 @@ -1,3 +1,11 @@ +cups (1.6.1-0ubuntu11.4) quantal-proposed; urgency=low + + * debian/cups.logrotate: Do not remove CUPS' log files while the CUPS + daemon is running. Stop CUPS, move the files, and then start it again. + This avoids crashes during the log rotation process (LP: #1086019). + + -- Till Kamppeter Tue, 23 Apr 2013 12:12:12 +0200 + cups (1.6.1-0ubuntu11.3) quantal-security; urgency=low * SECURITY UPDATE: privilege escalation via config file editing diff -Nru cups-1.6.1/debian/cups.logrotate cups-1.6.1/debian/cups.logrotate --- cups-1.6.1/debian/cups.logrotate 2012-07-28 09:27:10.000000000 +0200 +++ cups-1.6.1/debian/cups.logrotate 2013-04-23 11:54:54.000000000 +0200 @@ -3,9 +3,16 @@ missingok rotate 7 sharedscripts - postrotate + prerotate if [ -e /var/run/cups/cupsd.pid ]; then - invoke-rc.d --quiet cups force-reload > /dev/null + 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 sleep 10 fi endscript