An init script for starting and stopping the server correctly.
- screen
- rsync
- Symlink the minecraft file to
/etc/init.d/minecraft
:sudo ln -s ~/minecraft-init/minecraft /etc/init.d/minecraft
- Set the required permissions:
chmod 755 ~/minecraft-init/minecraft
- Update
rc.d
:sudo update-rc.d minecraft defaults
- Edit the variables in
config.example
to your needs and rename it toconfig
(leaving it in the same folder as the original minecraft script). - Move your worlds to the folder specified by
WORLDSTORAGE
. - As the server user, run
crontab -e
and add these lines:#m h dom mon dow command 02 05 * * * /etc/init.d/minecraft backup ``
- To access the console, run
screen -r minecraft
. - Exit the console with
[Ctrl]
+[A]
+[D]
For more help with the script, run /etc/init.d/minecraft help
.
- Created by Ahtenus
- Based on http://www.minecraftwiki.net/wiki/Server_startup_script
- Support for multiple worlds by Benni-chan
- Option for killing server in an emergency by jbondhus