From f9c9dd4d8f2277294d051856f8d56f4c78c9fd0c Mon Sep 17 00:00:00 2001 From: josh Date: Wed, 24 Jan 2007 23:31:29 +0000 Subject: [PATCH] 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 --- CHANGELOG | 1 + contrib/service-scripts/suse.maui.d | 53 +++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100755 contrib/service-scripts/suse.maui.d diff --git a/CHANGELOG b/CHANGELOG index 973256a..491ced5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/contrib/service-scripts/suse.maui.d b/contrib/service-scripts/suse.maui.d new file mode 100755 index 0000000..2ab50b2 --- /dev/null +++ b/contrib/service-scripts/suse.maui.d @@ -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