-
-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathstart.sh
More file actions
18 lines (14 loc) · 623 Bytes
/
start.sh
File metadata and controls
18 lines (14 loc) · 623 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
if [ -n "$SF_PWD" ]; then
cd $SF_PWD
fi
if [ -z "$SF_RAM" ]; then
echo "SF_RAM is not set. Defaulting to 2G."
SF_RAM="2G"
fi
if [ -z "$SF_JAR" ]; then
echo "SF_JAR is not set. Using default jar file of this image."
SF_JAR="/soulfire/soulfire.jar"
fi
echo "Starting SoulFire dedicated server..."
java -Xmx$SF_RAM $SF_JVM_FLAGS -XX:+EnableDynamicAgentLoading -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+UseCompactObjectHeaders -XX:+AlwaysActAsServerClassMachine -XX:+UseNUMA -XX:+UseFastUnorderedTimeStamps -XX:+UseVectorCmov -XX:+UseCriticalJavaThreadPriority -Dsf.flags.v2=true -jar $SF_JAR