i’m trying to install spigot server on debian 10, when i run start.sh:
#!/bin/sh
while true
do
java -Xms4G -Xmx4G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -
XX:+UnlockExperimentalVMOptions -$
echo "restarting in 10"
sleep 10
done
i don’t have any idea on how to fix it, any help?
2
Answers
The script seems to require an argument which should be the jar name.
Also, you put a wrong back to break line ("n") which seems to break the bash.
For me, you should replace
-$
by the jar file or spigot, like that:The script is not correct.
Reference: https://www.vultr.com/docs/setup-spigot-on-debian-10/