[Pkg-cups-devel] r40 - cupsys/branches/cups-1.2/debian
Martin Pitt
mpitt at costa.debian.org
Wed Dec 7 12:51:55 UTC 2005
Author: mpitt
Date: Wed Dec 7 12:51:54 2005
New Revision: 40
Modified:
cupsys/branches/cups-1.2/debian/changelog
cupsys/branches/cups-1.2/debian/control
cupsys/branches/cups-1.2/debian/cupsys.init.d
Log:
debian/cupsys.init.d: Use LSB init functions. Add lsb-base package dependency.
Modified: cupsys/branches/cups-1.2/debian/changelog
==============================================================================
--- cupsys/branches/cups-1.2/debian/changelog (original)
+++ cupsys/branches/cups-1.2/debian/changelog Wed Dec 7 12:51:54 2005
@@ -5,8 +5,10 @@
locations to new conf.d structure.
* debian/cupsys.templates: Fix default value for cupsys/browse: 'yes' is an
invalid bool option, change to true.
+ * debian/cupsys.init.d: Use LSB init functions. Add lsb-base package
+ dependency.
- -- Martin Pitt <mpitt at debian.org> Wed, 7 Dec 2005 13:43:42 +0100
+ -- Martin Pitt <mpitt at debian.org> Wed, 7 Dec 2005 13:50:53 +0100
cupsys (1.1.99.b1.r4841-1) experimental; urgency=low
Modified: cupsys/branches/cups-1.2/debian/control
==============================================================================
--- cupsys/branches/cups-1.2/debian/control (original)
+++ cupsys/branches/cups-1.2/debian/control Wed Dec 7 12:51:54 2005
@@ -10,7 +10,7 @@
Priority: optional
Section: net
Architecture: any
-Depends: ${shlibs:Depends}, adduser (>= 3.12), debconf (>= 1.2.9) | debconf-2.0, patch, xpdf-utils, perl-modules, procps, gs-esp
+Depends: ${shlibs:Depends}, adduser (>= 3.12), debconf (>= 1.2.9) | debconf-2.0, patch, xpdf-utils, perl-modules, procps, gs-esp, lsb-base (>= 3)
Replaces: cupsys-pstoraster
Conflicts: cupsys-pstoraster (<< 2)
Recommends: cupsys-client, smbclient (>= 3.0.9), foomatic-filters
Modified: cupsys/branches/cups-1.2/debian/cupsys.init.d
==============================================================================
--- cupsys/branches/cups-1.2/debian/cupsys.init.d (original)
+++ cupsys/branches/cups-1.2/debian/cupsys.init.d Wed Dec 7 12:51:54 2005
@@ -18,6 +18,8 @@
set -e
+. /lib/lsb/init-functions
+
# Get the timezone set.
if [ -e /etc/timezone ]; then
TZ=`cat /etc/timezone`
@@ -26,28 +28,28 @@
case "$1" in
start)
- echo -n "Starting $DESC: $NAME"
+ log_begin_msg "Starting $DESC: $NAME"
chown root:lpadmin /usr/share/cups/model 2>/dev/null || true
chmod 3775 /usr/share/cups/model 2>/dev/null || true
start-stop-daemon --start --quiet --pidfile "$PIDFILE" --exec $DAEMON
- echo "."
+ log_end_msg $?
;;
stop)
- echo -n "Stopping $DESC: $NAME"
+ log_begin_msg "Stopping $DESC: $NAME"
start-stop-daemon --stop --quiet --user root --retry TERM/10 --oknodo --pidfile $PIDFILE --name $NAME
- echo "."
+ log_end_msg $?
;;
reload)
- echo -n "Reloading $DESC: $NAME"
+ log_begin_msg "Reloading $DESC: $NAME"
start-stop-daemon --stop --quiet --pidfile $PIDFILE --name $NAME --signal 1
- echo "."
+ log_end_msg $?
;;
restart|force-reload)
- echo -n "Restarting $DESC: $NAME"
+ log_begin_msg "Restarting $DESC: $NAME"
if start-stop-daemon --stop --quiet --user root --retry TERM/10 --oknodo --pidfile $PIDFILE --name $NAME; then
start-stop-daemon --start --quiet --pidfile "$PIDFILE" --exec $DAEMON
fi
- echo "."
+ log_end_msg $?
;;
status)
echo -n "Status of $DESC: "
More information about the Pkg-cups-devel
mailing list