From: Mike Croft Date: Mon, 27 Apr 2015 19:56:16 +0000 (+0100) Subject: added a very basic payara service script with methods for future additions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6693acd2709527ba2840344f3d7213683afd3442;p=payara-vagrant.git added a very basic payara service script with methods for future additions --- diff --git a/payara_service-4.1.151 b/payara_service-4.1.151 new file mode 100644 index 0000000..d715254 --- /dev/null +++ b/payara_service-4.1.151 @@ -0,0 +1,33 @@ +#!/bin/sh +# +# Basic Payara service +# + +PAYARA_HOME=/opt/payara/payara41 +export PAYARA_HOME + + +case "$1" in +start) + start + ;; +stop) + stop + ;; +restart) + $PAYARA_HOME/bin/asadmin restart-domain >/dev/null + ;; +\*) + echo "usage: $0 (start|stop|restart|help)" +esac + + +start() { + echo -n "Starting Payara: " + $PAYARA_HOME/bin/asadmin start-domain +} + +stop() { + echo -n "Stopping Payara: " + $PAYARA_HOME/bin/asadmin stop-domain +}