From: Sarantis Paskalis Date: Thu, 28 Jun 2001 13:38:42 +0000 (+0000) Subject: formatting changes; individual return values are returned from the init script. X-Git-Tag: v_2_9_9~330 X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/@url@?a=commitdiff_plain;h=eb12fc1391894a30dc8a6e9c4d9053744b0a279d;p=privoxy.git formatting changes; individual return values are returned from the init script. --- diff --git a/junkbuster.init b/junkbuster.init index 748b1da0..10d84395 100644 --- a/junkbuster.init +++ b/junkbuster.init @@ -36,6 +36,9 @@ # # Revisions : # $Log: junkbuster.init,v $ +# Revision 1.5 2001/06/11 11:37:40 sarantis +# Minor editing changes. +# # Revision 1.4 2001/06/09 09:14:11 swa # shamelessly adapted RPM stuff from the newest rpm that # RedHat provided for the JB. @@ -93,25 +96,33 @@ stop () { } case "$1" in -start) + start) start ;; -stop) + stop) stop ;; -restart) + reload|restart) stop start + RETVAL=$? ;; -condrestart) - [ -f /var/lock/subsys/junkbuster ] && restart || : + condrestart) + # restart only if already running + if [ -f /var/lock/subsys/junkbuster ] ; then + stop + start + RETVAL=$? + ;; + fi ;; -status) + status) status junkbuster + RETVAL=$? ;; -*) - echo $"Usage: junkbuster {start|stop|restart|condrestart|status}" + *) + echo $"Usage: junkbuster {start|stop|reload|restart|condrestart|status}" exit 1 esac -exit 0 +exit $RETVAL