From a07200ab0682dbb9f5ac6e1be862d6021c3338b0 Mon Sep 17 00:00:00 2001 From: josh Date: Thu, 25 Jan 2007 21:01:11 +0000 Subject: [PATCH] FEATURE: added startup script for RedHat Contact: Dave Chin Description: Dave Chin contributed this trivial modification to the Maui startup script on-line git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@82 3f5042e3-fb1d-0410-be18-d6ca2573e517 --- contrib/service-scripts/redhat.maui.d | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 contrib/service-scripts/redhat.maui.d diff --git a/contrib/service-scripts/redhat.maui.d b/contrib/service-scripts/redhat.maui.d new file mode 100644 index 0000000..3492c47 --- /dev/null +++ b/contrib/service-scripts/redhat.maui.d @@ -0,0 +1,36 @@ +#!/bin/sh +# +# maui This script will start and stop the MAUI Scheduler +# +# chkconfig: 345 85 85 +# description: maui +# +ulimit -n 32768 +# Source the library functions +. /etc/rc.d/init.d/functions + +MAUI_PREFIX=/opt + +# let see how we were called +case "$1" in + start) + echo -n "Starting MAUI Scheduler: " + daemon --user maui $MAUI_PREFIX/sbin/maui + echo + ;; + stop) + echo -n "Shutting down MAUI Scheduler: " + killproc maui + echo + ;; + status) + status maui + ;; + restart) + $0 stop + $0 start + ;; + *) + echo "Usage: maui {start|stop|restart|status}" + exit 1 +esac