Git Product home page Git Product logo

minecraft-init's Introduction

Init script for minecraft/bukkit servers

A init script that apart form starting and stopping the server correctly also has some extra features for running a mincraft/craftbukkit server.

Features

  • Utilization of ramdisk for world data, decreases lag when getting world chunks
  • Cleaning of server.log, a big log file slows down the server
  • Backup for worlds
  • Server updating and complete backup
  • Exclude files and directories from full backup by adding them to "exclude.list"

Requirements

screen, rsync

Access server console

screen -r minecraft

Exit the console

Ctrl+A D

Setup

  1. Symlink the minecraft file to /etc/init.d/minecraft, set the required premissions and update rc.d.

     sudo ln -s ~/minecraft-init/minecraft /etc/init.d/minecraft
     chmod 755  ~/minecraft-init/minecraft
     sudo update-rc.d minecraft defaults
    
  2. Edit the variables in config.example to your needs and rename it to config (leaving it in the same folder as the original minecraft script)

  3. Move your worlds to the folder specified by WORLDSTORAGE

  4. Edit crontab

    As the server user:

     crontab -e
    

    Add these lines:

     #m 	h 	dom	mon	dow	command
     02 	05 	*	*	*	/etc/init.d/minecraft backup
     55 	04 	*	*	*	/etc/init.d/minecraft log-roll
     */30 	* 	*	*	*	/etc/init.d/minecraft to-disk
    
  5. To load a world from ramdisk run:

     /etc/init.d/minecraft ramdisk WORLDNAME
    

    to disable ramdisk, run the same command again.

For more help with the script, run

/etc/init.d/minecraft help

Flattr this git repo

Good stuff

Backup rotation script good if you want some kind or rolling of the world backups.

minecraft-init's People

Contributors

ahtenus avatar sockenklaus avatar wboubi avatar jbondhus avatar rovanion avatar bisa avatar stuxcrystal avatar oopsurdead avatar tyoverby avatar pbfy0 avatar croemmich avatar benni-chan avatar djcsdy avatar fernandoacorreia avatar jmcaffee avatar edvind avatar kevin-hanselman avatar likaos avatar mdornseif avatar talaren avatar remanent avatar solorvox avatar rinon avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.