GCCluster: redhat.maui

File redhat.maui, 565 bytes (added by Pieter Neerincx, 12 years ago)

/etc/init.d/ script for maui (Redhat/CentOS/Fedora flavor)

Line 
1#!/bin/sh
2#
3# maui  This script will start and stop the MAUI Scheduler
4#
5# chkconfig: 345 85 85
6# description: maui
7#
8ulimit -n 32768
9# Source the library functions
10. /etc/rc.d/init.d/functions
11
12MAUI_PREFIX=/usr/local/maui
13
14# let see how we were called
15case "$1" in
16        start)
17                echo -n "Starting MAUI Scheduler: "
18                daemon $MAUI_PREFIX/sbin/maui
19                echo
20                ;;
21        stop)
22                echo -n "Shutting down MAUI Scheduler: "
23                killproc maui
24                echo
25                ;;
26        status)
27                status maui
28                ;;
29        restart)
30                $0 stop
31                $0 start
32                ;;
33        *)
34                echo "Usage: maui {start|stop|restart|status}"
35                exit 1
36esac