From eb12fc1391894a30dc8a6e9c4d9053744b0a279d Mon Sep 17 00:00:00 2001 From: Sarantis Paskalis Date: Thu, 28 Jun 2001 13:38:42 +0000 Subject: [PATCH] formatting changes; individual return values are returned from the init script. --- junkbuster.init | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) 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 -- 2.49.0