--- /dev/null
+#!/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