Skip to content

Commit

Permalink
Use Java11 compatible start script
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Oct 2, 2024
1 parent c1a15f0 commit 7b114db
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions modules/cryptoserver/src/dist/bin/q2
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
#!/bin/sh

cd `dirname $0`/.. || exit 1
cd $(dirname $0)/.. || exit 1
rm -f deploy/shutdown.xml

if [ -f jpos.pid ] && ps -p $(cat jpos.pid) > /dev/null 2>&1
then
echo "Process $(cat jpos.pid) is running"
else
rm -f jpos.pid
exec java -server \
-XX:+IgnoreUnrecognizedVMOptions \
-Xmx1G \
-Xloggc:log/gc.log \
-XX:+PrintGCDetails \
-XX:+PrintGCDateStamps \
-XX:+UseGCLogFileRotation \
-XX:NumberOfGCLogFiles=5 \
-XX:GCLogFileSize=2M \
-XX:NumberOfGCLogFiles=5 \
-Djava.net.preferIPv4Stack=true \
-Dcom.sun.management.jmxremote \
-jar jposee-@jarname@ --pid-file='jpos.pid' "$@"
rm -f jpos.pid
exec java -server \
--add-opens java.base/java.lang=ALL-UNNAMED \
-XX:+IgnoreUnrecognizedVMOptions \
-Xmx1G \
-Xlog:gc:log/gc.log \
-Dcom.sun.management.jmxremote=true \
-jar jposee-@jarname@ --pid="jpos.pid" "$@"
fi

0 comments on commit 7b114db

Please sign in to comment.