added "restart" command
This commit is contained in:
parent
633de92a04
commit
b297754948
2 changed files with 24 additions and 6 deletions
|
@ -20,8 +20,8 @@
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: fgerlits $
|
||||||
# Version : $Revision: 1.2 $
|
# Version : $Revision: 1.3 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/bin/scheduler.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/bin/scheduler.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -70,6 +70,15 @@ case "$mode" in
|
||||||
sleep 2
|
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')
|
'status')
|
||||||
echo "Checking LiveSupport scheduler status..."
|
echo "Checking LiveSupport scheduler status..."
|
||||||
$scheduler_exe -c $config_file status
|
$scheduler_exe -c $config_file status
|
||||||
|
@ -96,7 +105,7 @@ case "$mode" in
|
||||||
echo "LiveSupport scheduler System V runlevel init script."
|
echo "LiveSupport scheduler System V runlevel init script."
|
||||||
echo ""
|
echo ""
|
||||||
echo "Usage:"
|
echo "Usage:"
|
||||||
echo " $0 start|stop|status|install|uninstall|kill"
|
echo " $0 start|stop|restart|status|install|uninstall|kill"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Author : $Author: maroy $
|
# Author : $Author: fgerlits $
|
||||||
# Version : $Revision: 1.2 $
|
# Version : $Revision: 1.3 $
|
||||||
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/bin/scheduler_devenv.sh,v $
|
# Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/scheduler/bin/scheduler_devenv.sh,v $
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -93,6 +93,15 @@ case "$mode" in
|
||||||
sleep 2
|
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')
|
'status')
|
||||||
echo "Checking LiveSupport scheduler status..."
|
echo "Checking LiveSupport scheduler status..."
|
||||||
$scheduler_exe -c $config_file status
|
$scheduler_exe -c $config_file status
|
||||||
|
@ -119,7 +128,7 @@ case "$mode" in
|
||||||
echo "LiveSupport scheduler System V runlevel init script."
|
echo "LiveSupport scheduler System V runlevel init script."
|
||||||
echo ""
|
echo ""
|
||||||
echo "Usage:"
|
echo "Usage:"
|
||||||
echo " $0 start|run|stop|status|install|uninstall|kill"
|
echo " $0 start|run|stop|restart|status|install|uninstall|kill"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue