f9c9dd4d8f
Description: script was partially contributed by Stephen Cary (srcary@us.ibm.com) git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@81 3f5042e3-fb1d-0410-be18-d6ca2573e517
54 lines
839 B
Bash
Executable File
54 lines
839 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Maui Scheduler This script will start and stop the Maui Scheduler (SUSE)
|
|
#
|
|
# chkconfig: 345 85 85
|
|
# description: maui
|
|
#
|
|
# Source the library functions
|
|
. /etc/rc.status
|
|
|
|
# ENVIRONMENT
|
|
MAUI=/opt/maui/sbin/maui
|
|
#
|
|
# Check for parameters in /etc/sysconfig,
|
|
# if so load them into the environment
|
|
[ -f /etc/sysconfig/maui ] && . /etc/sysconfig/maui
|
|
#
|
|
# make sure the binary exists
|
|
# exit if not
|
|
[ -x $MAUI ] || exit
|
|
|
|
#
|
|
# What command are we to do?
|
|
#
|
|
case "$1" in
|
|
|
|
start)
|
|
echo -n "Starting the Maui scheduler: "
|
|
startproc $MAUI
|
|
rc_status -v
|
|
;;
|
|
|
|
stop)
|
|
echo -n "Shutting down Maui Scheduler: "
|
|
killproc `basename $MAUI`
|
|
rc_status -v
|
|
;;
|
|
|
|
status)
|
|
checkproc `basename $MAUI`
|
|
rc_status -v
|
|
;;
|
|
|
|
restart)
|
|
$0 stop
|
|
$0 start
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: maui {start|stop|restart|status}"
|
|
exit 1
|
|
|
|
esac
|