[Pkg-cups-devel] r205 - cupsys/branches/cups-1.2-ubuntu/debian

Martin Pitt mpitt at costa.debian.org
Tue Apr 25 13:19:52 UTC 2006


Author: mpitt
Date: Tue Apr 25 13:19:51 2006
New Revision: 205

Modified:
   cupsys/branches/cups-1.2-ubuntu/debian/changelog
   cupsys/branches/cups-1.2-ubuntu/debian/cupsys.init.d
Log:
* debian/cupsys.init.d: Pre-create error_log, too, and clean up code a bit.



Modified: cupsys/branches/cups-1.2-ubuntu/debian/changelog
==============================================================================
--- cupsys/branches/cups-1.2-ubuntu/debian/changelog	(original)
+++ cupsys/branches/cups-1.2-ubuntu/debian/changelog	Tue Apr 25 13:19:51 2006
@@ -12,8 +12,9 @@
     - Add some comments to point out that the Port and Browsing settings are
       moved to /etc/cups/cups.d/.
   * debian/cupsys.postrm: Clean up passwd.md5 on purge.
+  * debian/cupsys.init.d: Pre-create error_log, too, and clean up code a bit.
 
- -- Martin Pitt <martin.pitt at ubuntu.com>  Tue, 25 Apr 2006 11:43:59 +0200
+ -- Martin Pitt <martin.pitt at ubuntu.com>  Tue, 25 Apr 2006 13:00:31 +0200
 
 cupsys (1.1.99.rc2-0ubuntu2) dapper; urgency=low
 

Modified: cupsys/branches/cups-1.2-ubuntu/debian/cupsys.init.d
==============================================================================
--- cupsys/branches/cups-1.2-ubuntu/debian/cupsys.init.d	(original)
+++ cupsys/branches/cups-1.2-ubuntu/debian/cupsys.init.d	Tue Apr 25 13:19:51 2006
@@ -29,16 +29,13 @@
 	chown cupsys:lp `dirname "$PIDFILE"`
 
 	# create the logs file since cupsd can't
-	if [ ! -e /var/log/cups/access_log ]; then
-	     touch /var/log/cups/access_log
-	     chmod 640 /var/log/cups/access_log
-	     chown cupsys:lpadmin /var/log/cups/access_log
-	fi
-	if [ ! -e /var/log/cups/page_log ]; then
-	     touch /var/log/cups/page_log
-	     chmod 640 /var/log/cups/page_log
-	     chown cupsys:lpadmin /var/log/cups/page_log
-	fi
+	for l in access page error; do
+	    if [ ! -e /var/log/cups/$l_log ]; then
+		 touch /var/log/cups/$l_log
+		 chmod 640 /var/log/cups/$l_log
+		 chown cupsys:lpadmin /var/log/cups/$l_log
+	    fi
+	done
 
 	start-stop-daemon --start --quiet --oknodo --pidfile "$PIDFILE" --exec $DAEMON
 	;;



More information about the Pkg-cups-devel mailing list