--- /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
+ ;;
+stop)
+ stop $2
+ ;;
+restart)
+ $PAYARA_HOME/bin/asadmin restart-domain >/dev/null
+ ;;
+\*)
+ echo "usage: $0 (start|stop|restart|help)"
+esac
#
# Payara Version
-PAYARA_VERSION=4.1.152
+PAYARA_VERSION=4.1.153
# Payara URLs
case "$PAYARA_VERSION" in
MULTI_LANGUAGE_FULL=http://bit.ly/1H4SrdQ
MULTI_LANGUAGE_WEB=http://bit.ly/1G8NKnd
;;
+ 4.1.153)
+ # The below links are to 4.1.153
+ FULL=http://bit.ly/1I4tz9r
+ WEB=http://bit.ly/1IaXo67
+ MINIMAL=http://bit.ly/1OQGy0K
+ MICRO=http://bit.ly/1JTP36N
+ EMBEDDED_FULL=http://bit.ly/1h7MeZ6
+ EMBEDDED_WEB=http://bit.ly/1DS74QT
+ MULTI_LANGUAGE_FULL=http://bit.ly/1Sk4NKm
+ MULTI_LANGUAGE_WEB=http://bit.ly/1H6pcXw
+ ;;
\*)
echo "unknown version number"
esac
sudo mkdir -p $PAYARA_HOME/startup # Make dirs for Payara
unzip -qq temp.zip -d $PAYARA_HOME # unzip Payara to dir
+#########################################
+#
+# Delete or comment out from here down
+# for Micro/Embedded versions
+#
+#########################################
+
# Copy startup script, and create service
echo "installing startup scripts"
sudo cp /vagrant/payara_service-$PAYARA_VERSION $PAYARA_HOME/startup/
echo "starting Payara..."
+# Explicitly start payaradomain by default
case "$PAYARA_VERSION" in
4.1.151)
su - vagrant -c 'service payara start domain1'
4.1.152)
su - vagrant -c 'service payara start payaradomain'
;;
+ 4.1.153)
+ su - vagrant -c 'service payara start payaradomain'
+ ;;
/*)
echo "Unknown Payara version, attempting to start domain1..."
su - vagrant -c 'service payara start domain1'