#!/bin/bash # Init file for Maui # # chkconfig: 2345 82 11 # description: Maui # source function library . /etc/rc.d/init.d/functions case "$1" in start) echo -n "Starting Maui: " daemon /usr/local/sbin/maui RETVAL=$? echo ;; stop) echo -n "Shutting down Maui: " killproc maui RETVAL=$? echo ;; restart) $0 stop $0 start RETVAL=$? ;; status) status maui RETVAL=$? ;; *) echo "Usage: Maui {start|stop|restart|status}" RETVAL=1 esac exit $RETVAL