]> git.mxchange.org Git - payara-vagrant.git/commitdiff
added a very basic payara service script with methods for future additions
authorMike Croft <backtotheoldhouse@gmail.com>
Mon, 27 Apr 2015 19:56:16 +0000 (20:56 +0100)
committerMike Croft <backtotheoldhouse@gmail.com>
Mon, 27 Apr 2015 19:56:16 +0000 (20:56 +0100)
payara_service-4.1.151 [new file with mode: 0644]

diff --git a/payara_service-4.1.151 b/payara_service-4.1.151
new file mode 100644 (file)
index 0000000..d715254
--- /dev/null
@@ -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 
+}