2 Replies - 2816 Views - Last Post: 30 November 2013 - 08:19 PM

#1 Tom9729  Icon User is offline

  • Segmentation fault
  • member icon

Reputation: 180
  • View blog
  • Posts: 2,641
  • Joined: 30-December 07

Minecraft server script

Posted 22 March 2012 - 08:24 PM

Rewritten Minecraft server script for Linux. I use it on Ubuntu, but it should be portable to other distros with some effort.

Old Freebsd 8 script here.

Changes:
  • Uses netcat instead of screen.
  • Manage multiple servers.
  • Backups dir scales better.

See header comments in script for more information.

Version: 2012.03.22 (sorry about pastebin link, code tags mess up the indentation)

Enjoy!

Is This A Good Question/Topic? 2
  • +

Replies To: Minecraft server script

#2 Tom9729  Icon User is offline

  • Segmentation fault
  • member icon

Reputation: 180
  • View blog
  • Posts: 2,641
  • Joined: 30-December 07

Re: Minecraft server script

Posted 06 May 2012 - 03:34 PM

I've switched back to using my older script. It seems like after time netcat closes the sockets it is listening to, and the server stops receiving commands from the script, which breaks things unless you restart frequently. I will work on a fix but it's pretty low priority. :(
Was This Post Helpful? 0
  • +
  • -

#3 Tom9729  Icon User is offline

  • Segmentation fault
  • member icon

Reputation: 180
  • View blog
  • Posts: 2,641
  • Joined: 30-December 07

Re: Minecraft server script

Posted 30 November 2013 - 08:19 PM

New version of my script: http://pastebin.com/hrcgg940

It uses mcrcon to control the server instead of Screen.

Summary:
- Manages one server (start/stop/restart/status).
- Does fast incremental backups with rsync (number of backups to keep is configurable).
- Checks to see if there is a newer version of the server and updates if there is.
- Started to add logging via syslog.

As usual, no warranty etc.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1