GeneralNeed help auto-restarting Minecraft server
Posted:

GeneralNeed help auto-restarting Minecraft serverPosted:

Wraith
  • Graphics King
Status: Online
Joined: Sep 29, 20173 Year Member
Posts: 2,374
Reputation Power: 17012
Motto: Among us nuggets with sussy sauce
Motto: Among us nuggets with sussy sauce
Status: Online
Joined: Sep 29, 20173 Year Member
Posts: 2,374
Reputation Power: 17012
Motto: Among us nuggets with sussy sauce
Hello all,

I am currently hosting a Minecraft server on 1.17 using spigot and basically what I want to do it restart the server automatically when/if there is a crash. I am using Ubuntu 14.04 with screen to keep the server running 24/7. I have looked online for possible solutions but most of what I have found doesn't seem to work.

If any of you are familiar with Ubuntu and know how I would go about auto-restarting the server, please let me know.

Thanks
#2. Posted:
XBL-AB
  • Summer 2018
Status: Offline
Joined: Feb 13, 201011 Year Member
Posts: 4,463
Reputation Power: 203
Status: Offline
Joined: Feb 13, 201011 Year Member
Posts: 4,463
Reputation Power: 203
I personally use a panel installed on my machine. any kind of minecraft game panel will do, but there is also auto restart mods / plugins that work with panels with auto start on it.
#3. Posted:
r00t
  • Administrator
Status: Offline
Joined: May 18, 201110 Year Member
Posts: 15,890
Reputation Power: 16845
Status: Offline
Joined: May 18, 201110 Year Member
Posts: 15,890
Reputation Power: 16845
Use cron to run this shell script @reboot:

while true
do
(start server command here)
done
#4. Posted:
Wraith
  • Graphics King
Status: Online
Joined: Sep 29, 20173 Year Member
Posts: 2,374
Reputation Power: 17012
Motto: Among us nuggets with sussy sauce
Motto: Among us nuggets with sussy sauce
Status: Online
Joined: Sep 29, 20173 Year Member
Posts: 2,374
Reputation Power: 17012
Motto: Among us nuggets with sussy sauce
r00t wrote Use cron to run this shell script @reboot:

while true
do
(start server command here)
done

so it will detect if the jar file isn't running in the screen session? I saw something like that online but they used 2 .sh files and cron which made me hella confused.
Users browsing this topic: None
Jump to:


RECENT POSTS

HOT TOPICS