Mine
public text v1 · immutable#!/bin/sh
#
# init script for dotCMS
#
# Source function library
. /etc/rc.d/init.d/functions
prog="dotCMS"
start() {
echo -n $"Starting $prog: "
/usr/local/dotcms/bin/startup.sh
RETVAL=$?
echo
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
/usr/local/dotcms/bin/shutdown.sh
RETVAL=$?
echo
return $RETVAL
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
exit $RETVAL