GeneralNeed help auto-restarting Minecraft server
Posted:

GeneralNeed help auto-restarting Minecraft serverPosted:

Wraith
  • Trusted Seller
Status: Online
Joined: Sep 29, 20176Year Member
Posts: 4,967
Reputation Power: 65700
Motto: https://wraith.to
Motto: https://wraith.to
Status: Online
Joined: Sep 29, 20176Year Member
Posts: 4,967
Reputation Power: 65700
Motto: https://wraith.to
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
  • TTG Fanatic
Status: Offline
Joined: Feb 13, 201014Year Member
Posts: 4,550
Reputation Power: 207
Status: Offline
Joined: Feb 13, 201014Year Member
Posts: 4,550
Reputation Power: 207
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, 201112Year Member
Posts: 16,352
Reputation Power: 24340
Status: Offline
Joined: May 18, 201112Year Member
Posts: 16,352
Reputation Power: 24340
Use cron to run this shell script @reboot:

while true
do
(start server command here)
done
#4. Posted:
Wraith
  • Trusted Seller
Status: Online
Joined: Sep 29, 20176Year Member
Posts: 4,967
Reputation Power: 65700
Motto: https://wraith.to
Motto: https://wraith.to
Status: Online
Joined: Sep 29, 20176Year Member
Posts: 4,967
Reputation Power: 65700
Motto: https://wraith.to
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