Problem ServerStart.sh with screen command on linux FTB Infinity Evolved 2.3.1

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Trucidoe

Active Member
Jul 29, 2019
9
0
26
I am using the following line on my old ServerStart.sh file:
"screen -S minecraft nice -n 20 java -Xmx8G -jar FTBServer-1.7.10-1558.jar nogui"

How do I edit the new line to accomodate these settings when it currently the new ServerStart.sh using automatic restarts:

"start_server() {
"$JAVACMD" -server -Xms512M -Xmx2048M -XX:permSize=256M -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:parallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar FTBServer-1.7.10-1558.jar nogui
}"

Any help would be greatly appreciated.
 

Trucidoe

Active Member
Jul 29, 2019
9
0
26
Any help with this or using tmux instead of screen command would be helpful. I am now running FTB Infinity Evovled 2.3.5 btw.
 

Henry Link

Forum Addict
Dec 23, 2012
2,601
553
153
USA - East Coast
Not sure I can help but I'll give it a try. I run my own custom server using Ubuntu 14.10. I've registered a bash script to start the minecraft server on reboot. It does use the screen command like you have in your ServerStart.sh

But, what I don't recognize is that 2nd script. It looks to be some type of java. How do you intend to launch that script at server reboot?

If you are interested in what I've done it is based on the vanilla minecraft server script. You can find info on that at http://minecraft.gamepedia.com/Tutorials/Server_startup_script. It does work with Infinity and various other packs.
 

jikuja

legacy FTB Launcher developer
Launcher Developer
Global Moderator
Dec 17, 2013
1,134
111
99
Is there something wrong with ServerStart.sh? Why it cannot be run inside screen?
 

Henry Link

Forum Addict
Dec 23, 2012
2,601
553
153
USA - East Coast
Is there something wrong with ServerStart.sh? Why it cannot be run inside screen?

From my point of view the ServerStart.sh is fine for initial setup of the pack and to make sure everything works. However, in the long run you want it to run as service under linux. That way the minecraft instance restarts when the server is rebooted. It also enables you to use basic console command like service infinity restart. Which is what I use with cron to restart the minecraft instance at least once a day. The best way to do this is a bash script that has been registered as a service.
 

jikuja

legacy FTB Launcher developer
Launcher Developer
Global Moderator
Dec 17, 2013
1,134
111
99
Using as a sevice is fine point. I've never nothered to do that.

Starting uo minecraft at reboon can be done alsi with cron. Directive @reboot run command whan machine is starting up.
 

Rob Puffer

New Member
Jul 29, 2019
3
0
0
I am using the following line on my old ServerStart.sh file:
"screen -S minecraft nice -n 20 java -Xmx8G -jar FTBServer-1.7.10-1558.jar nogui"

Try
screen -dmS minecraftServer java -Xms2048m -Xmx4096m -XX:permSize=256m -jar ftbserver.jar nogui

change your name of serer to what ever and the jar file.

workes 100% for me on my ubuntu 14.04 server

then screen -r minecraftServer to display in console.