From 6693acd2709527ba2840344f3d7213683afd3442 Mon Sep 17 00:00:00 2001 From: Mike Croft Date: Mon, 27 Apr 2015 20:56:16 +0100 Subject: [PATCH] added a very basic payara service script with methods for future additions --- payara_service-4.1.151 | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 payara_service-4.1.151 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 +} -- 2.39.5