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