diff options
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 0000000000..3f036da0ee --- /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 |