[Pkg-cups-devel] r147 - cupsys/branches/cups-1.2/debian
Kenshi Muto
kmuto at costa.debian.org
Wed Apr 12 12:35:05 UTC 2006
Author: kmuto
Date: Wed Apr 12 12:35:04 2006
New Revision: 147
Modified:
cupsys/branches/cups-1.2/debian/changelog
cupsys/branches/cups-1.2/debian/cupsys.logrotate
Log:
use if-fi style (#347641)
Modified: cupsys/branches/cups-1.2/debian/changelog
==============================================================================
--- cupsys/branches/cups-1.2/debian/changelog (original)
+++ cupsys/branches/cups-1.2/debian/changelog Wed Apr 12 12:35:04 2006
@@ -27,6 +27,8 @@
* Use 'reload' during logrotate instead of 'restart'. It looks safe
on CUPS 1.2. (though job-restart problem still remains)
* set TZ in init script only if TZ isn't defined yet.
+ * Use if-fi structure style for postrotate of logrotate script.
+ It solves error when cupsys is not running. (closes: #347641)
[ Martin Pitt ]
* debian/patches/48_stdlib.dpatch: Adapted to new upstream version.
Modified: cupsys/branches/cups-1.2/debian/cupsys.logrotate
==============================================================================
--- cupsys/branches/cups-1.2/debian/cupsys.logrotate (original)
+++ cupsys/branches/cups-1.2/debian/cupsys.logrotate Wed Apr 12 12:35:04 2006
@@ -4,7 +4,10 @@
rotate 7
sharedscripts
postrotate
- [ -e /var/run/cups/cupsd.pid ] && invoke-rc.d --quiet cupsys reload > /dev/null && sleep 10
+ if [ -e /var/run/cups/cupsd.pid ]; then
+ invoke-rc.d --quiet cupsys reload > /dev/null
+ sleep 10
+ fi
endscript
compress
notifempty
More information about the Pkg-cups-devel
mailing list