From: Mike Croft Date: Sun, 16 Aug 2015 17:59:25 +0000 (+0100) Subject: added service script for the Pre-release version X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=be5bfad4e3ecaf3996ba51373844ad7080f0c72f;p=payara-vagrant.git added service script for the Pre-release version --- diff --git a/payara_service-PRE-RELEASE b/payara_service-PRE-RELEASE new file mode 100644 index 0000000..15d884a --- /dev/null +++ b/payara_service-PRE-RELEASE @@ -0,0 +1,34 @@ +#!/bin/sh +# +# Basic Payara service +# + +PAYARA_HOME=/opt/payara/payara-4.1.153/payara41 +export PAYARA_HOME + + + +start() { + echo -n "Starting Payara: " + $PAYARA_HOME/bin/asadmin start-domain $1 +} + +stop() { + echo -n "Stopping Payara: " + $PAYARA_HOME/bin/asadmin stop-domain $1 +} + + +case "$1" in +start) + start ${2:-payaradomain} + ;; +stop) + stop ${2:-payaradomain} + ;; +restart) + $PAYARA_HOME/bin/asadmin restart-domain >/dev/null + ;; +\*) + echo "usage: $0 (start|stop|restart|help)" +esac