Package: cupsys
Version: 1.1.23-7
Severity: minor

/etc/init.d/cupsys script does not create /var/run/cupsd.pid file 

I attach a small patch for it.

-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages cupsys depends on:
ii  adduser                     3.63         Add and remove users and groups
ii  debconf                     1.4.46       Debian configuration management 
sy
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries 
an
ii  libcupsimage2               1.1.23-7     Common UNIX Printing System(tm) -
ii  libcupsys2-gnutls10         1.1.23-7     Common UNIX Printing System(tm) -
ii  libgnutls11                 1.0.16-13    GNU TLS library - runtime library
ii  libpam0g                    0.76-22      Pluggable Authentication Modules 
l
ii  libpaper1                   1.1.14-3     Library for handling paper 
charact
ii  libslp1                     1.0.11a-2    OpenSLP libraries
ii  patch                       2.5.9-2      Apply a diff file to an original
ii  perl-modules                5.8.4-8      Core Perl modules
ii  xpdf-utils                  3.00-13      Portable Document Format (PDF) 
sui
ii  zlib1g                      1:1.2.2-4    compression library - runtime

-- debconf information:
  cupsys/raw-print: true
  cupsys/backend: ipp, lpd, parallel, socket, usb
--- /etc/init.d/cupsys	2005-03-28 15:25:33.072802960 +0200
+++ debian/cupsys.init.d	2005-03-28 15:22:17.501534312 +0200
@@ -8,17 +8,14 @@
 #		by Ian Murdock <[EMAIL PROTECTED]>.
 #
 # Version:	@(#)skeleton  1.8  03-Mar-1998  [EMAIL PROTECTED]
-# Modified for Debian GNU/Linux by Javier Uruen  <[EMAIL PROTECTED]>.
 #
 # This file was automatically customized by dh-make on Sun,  3 Oct 1999 20:58:02 -0500
 
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 DAEMON=/usr/sbin/cupsd
 NAME=cupsd
-PIDFILE=/var/run/$NAME.pid
 DESC="printing system service"
 
-OPTS="-F"
 test -f $DAEMON || exit 0
 
 set -e
@@ -32,29 +29,24 @@
 case "$1" in
   start)
 	echo -n "Starting $DESC: $NAME"
-	start-stop-daemon --start --quiet --background --make-pidfile \
-		--pidfile $PIDFILE --exec $DAEMON -- $OPTS
+	start-stop-daemon --start --quiet --exec $DAEMON
 	echo "."
 	;;
   stop)
 	echo -n "Stopping $DESC: $NAME"
-	start-stop-daemon --stop --quiet --oknodo \
-		--pidfile $PIDFILE --exec $DAEMON && rm -f $PIDFILE 
+	start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
 	echo "."
 	;;
   reload|force-reload)
 	echo -n "Reloading $DESC: $NAME"
-	start-stop-daemon --stop --quiet --oknodo --signal 1 \
-		--pidfile $PIDFILE --exec $DAEMON && rm -f $PIDFILE
+	start-stop-daemon --stop --quiet --oknodo --signal 1 --exec $DAEMON
 	echo "."
 	;;
   restart)
 	echo -n "Restarting $DESC: $NAME"
-	start-stop-daemon --stop --quiet --oknodo \
-		--pidfile $PIDFILE --exec $DAEMON && rm -f $PIDFILE
+	start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
 	sleep 1
-	start-stop-daemon --start --quiet  --background --make-pidfile \
-		--pidfile $PIDFILE  --exec $DAEMON -- $OPTS
+	start-stop-daemon --start --quiet --exec $DAEMON
 	echo "."
 	;;
   *)

Reply via email to