slackbuilds_ponce/network/glassfish/rc.glassfish
crocket 4f143d1ef1 network/glassfish: Added (Java EE Application Server)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2012-08-13 12:49:02 -05:00

21 lines
319 B
Bash

#!/bin/sh
# This is an example rc script.
# Modify it to suit your need.
start()
{
/bin/su -l glassfish -c /usr/bin/asadmin start-domain
}
stop()
{
/bin/su -l glassfish -c /usr/bin/asadmin stop-domain
}
case "$1" in
"start")start;;
"stop")stop;;
"restart")stop; start;;
*) echo "$0 start|stop|restart"
esac