From 4c05344dab156fff69266aef8144ffee39159d60 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Feb 01 2008 13:33:44 +0000 Subject: - Updated initscript for LSB exit codes and actions (bug #246897). --- diff --git a/cups.init b/cups.init index ac2e667..e33dc51 100644 --- a/cups.init +++ b/cups.init @@ -46,7 +46,7 @@ start () { RETVAL=$? echo [ $RETVAL = 0 ] && touch /var/lock/subsys/cups - return $RETVAL + return 0 } stop () { @@ -56,6 +56,7 @@ stop () { RETVAL=$? echo [ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups + return 0 } restart() { @@ -73,7 +74,7 @@ case $1 in restart) restart ;; - condrestart) + condrestart|try-restart) [ -f /var/lock/subsys/cups ] && restart || : ;; reload) @@ -82,6 +83,13 @@ case $1 in RETVAL=$? echo ;; + force-reload) + echo -n $"Reloading $prog: " + if ! killproc $DAEMON -HUP; then + restart + fi + echo + ;; status) status $DAEMON RETVAL=$? diff --git a/cups.spec b/cups.spec index e5defc7..11b9c19 100644 --- a/cups.spec +++ b/cups.spec @@ -452,6 +452,9 @@ rm -rf $RPM_BUILD_ROOT %{cups_serverbin}/daemon/cups-lpd %changelog +* Fri Feb 1 2008 Tim Waugh +- Updated initscript for LSB exit codes and actions (bug #246897). + * Thu Jan 24 2008 Tim Waugh 1:1.3.5-3 - Build requires autoconf.