maui init.d script for ubuntu

Do the small modifications on descriptions, variable names & paths of the ‘debain.pbs_server’ file to generate the maui init.d script.

#!/bin/sh
### BEGIN INIT INFO
# Provides:          maui
# Required-Start:    $local_fs
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start:     2 3 5
# Default-Stop:      S 0 1 6
# Description:       Maui job scheduler
### END INIT INFO

# TO INSTALL DO (as root):
#    cp maui /etc/init.d/maui && update-rc.d maui defaults

DESC="MAUI Job Scheduler"
NAME=maui
DAEMON=/opt/maui/sbin/$NAME
MAUI_DAEMON=$DAEMON
MAUI_HOME=/opt/maui/spool
PIDFILE=$MAUI_HOME/maui.pid
SCRIPTNAME=/etc/init.d/$NAME
export MAUI_DAEMON MAUI_HOME PIDFILE

 Continue reading