From b297754948f4be7e8fb61212fbbded21f1ae554f Mon Sep 17 00:00:00 2001 From: fgerlits Date: Wed, 20 Jul 2005 14:31:34 +0000 Subject: [PATCH] added "restart" command --- livesupport/products/scheduler/bin/scheduler.sh | 15 ++++++++++++--- .../products/scheduler/bin/scheduler_devenv.sh | 15 ++++++++++++--- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/livesupport/products/scheduler/bin/scheduler.sh b/livesupport/products/scheduler/bin/scheduler.sh index 3ae8ebf95..a06769c93 100755 --- a/livesupport/products/scheduler/bin/scheduler.sh +++ b/livesupport/products/scheduler/bin/scheduler.sh @@ -20,8 +20,8 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # -# Author : $Author: maroy $ -# Version : $Revision: 1.2 $ +# Author : $Author: fgerlits $ +# Version : $Revision: 1.3 $ # Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/bin/scheduler.sh,v $ #------------------------------------------------------------------------------- @@ -70,6 +70,15 @@ case "$mode" in sleep 2 ;; + 'restart') + echo "Stopping the LiveSupport scheduler..." + $scheduler_exe -c $config_file stop + sleep 2 + echo "Starting the LiveSupport scheduler..." + $scheduler_exe -c $config_file start + sleep 2 + ;; + 'status') echo "Checking LiveSupport scheduler status..." $scheduler_exe -c $config_file status @@ -96,7 +105,7 @@ case "$mode" in echo "LiveSupport scheduler System V runlevel init script." echo "" echo "Usage:" - echo " $0 start|stop|status|install|uninstall|kill" + echo " $0 start|stop|restart|status|install|uninstall|kill" echo "" esac diff --git a/livesupport/products/scheduler/bin/scheduler_devenv.sh b/livesupport/products/scheduler/bin/scheduler_devenv.sh index f31b99442..62a7e01cf 100755 --- a/livesupport/products/scheduler/bin/scheduler_devenv.sh +++ b/livesupport/products/scheduler/bin/scheduler_devenv.sh @@ -20,8 +20,8 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # -# Author : $Author: maroy $ -# Version : $Revision: 1.2 $ +# Author : $Author: fgerlits $ +# Version : $Revision: 1.3 $ # Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/bin/scheduler_devenv.sh,v $ #------------------------------------------------------------------------------- @@ -93,6 +93,15 @@ case "$mode" in sleep 2 ;; + 'restart') + echo "Stopping the LiveSupport scheduler..." + $scheduler_exe -c $config_file stop + sleep 2 + echo "Starting the LiveSupport scheduler..." + $scheduler_exe -c $config_file start + sleep 2 + ;; + 'status') echo "Checking LiveSupport scheduler status..." $scheduler_exe -c $config_file status @@ -119,7 +128,7 @@ case "$mode" in echo "LiveSupport scheduler System V runlevel init script." echo "" echo "Usage:" - echo " $0 start|run|stop|status|install|uninstall|kill" + echo " $0 start|run|stop|restart|status|install|uninstall|kill" echo "" esac