diff options
author | crocket <crockabiscuit@gmail.com> | 2012-08-13 12:49:02 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-08-13 12:49:02 -0500 |
commit | 4f143d1ef10883b02f9cfa870c4cc4c51856be79 (patch) | |
tree | 97950a867d0f0d0c420a5dd39aed57854632f717 /network/glassfish/rc.glassfish | |
parent | 8aef445b4fd99fb19f3075d08d7754e225ab1e52 (diff) |
network/glassfish: Added (Java EE Application Server)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/glassfish/rc.glassfish')
-rw-r--r-- | network/glassfish/rc.glassfish | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/network/glassfish/rc.glassfish b/network/glassfish/rc.glassfish new file mode 100644 index 000000000000..3f036da0ee25 --- /dev/null +++ b/network/glassfish/rc.glassfish @@ -0,0 +1,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 |