FEATURE: added new SUSE startup script

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
This commit is contained in:
josh 2007-01-24 23:31:29 +00:00
parent 752e55737d
commit f9c9dd4d8f
2 changed files with 54 additions and 0 deletions

View File

@ -2,6 +2,7 @@ Maui 3.2.6p19
- Implemented segfault fix submitted by Ake Sandgren
- Implemented patch in MJobProcessExtensionString to avoid dropping first token (from Peter Gardfjäll)
- Added SUSE service startup script (suse.maui.d) to "contrib" directory (thanks goes to Stephen Cary)
Maui 3.2.6p18

View File

@ -0,0 +1,53 @@
#!/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