summaryrefslogtreecommitdiff
path: root/network/glassfish/rc.glassfish
blob: 3f036da0ee25cc3ac6d0ed1a5d64d4d2d44cbf18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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