Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:superjamie/minecraft-init-script
Browse files Browse the repository at this point in the history
  • Loading branch information
superjamie committed Aug 14, 2013
2 parents 64b36c7 + e47f2a0 commit 66b6c60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ As the root user:
useradd -m bukkit
* Save the script as /etc/init.d/minecraft and make it executable
chmod +x /etc/init.d/minecraft
* Copy between the <<COMMENT and COMMENT lines and place the copy at /etc/sysconfig/minecraft
If you need to edit settings, edit the /etc/sysconfig/minecraft file, not the initscript
* Allow the bukkit user to run the init script without needing root access
Type `visudo` and add this line to the bottom:
bukkit localhost=NOPASSWD:/etc/init.d/minecraft*
Expand Down Expand Up @@ -94,6 +96,9 @@ It is possible to run multiple instances, for example a Creative server and a Su
* Edit the Provides section on Line 6 to the same as the new filename
# Provides: minecraft-creative
# Provides: minecraft-survival
* Create a separate SETTINGSFILE for each instance
SETTINGSFILE="/etc/sysconfig/minecraft-creative"
SETTINGSFILE="/etc/sysconfig/minecraft-creative"
* Set an alias for each server in ~/.bashrc
alias creative='/etc/init.d/minecraft-creative'
alias survival='/etc/init.d/minecraft-survival'
Expand Down

0 comments on commit 66b6c60

Please sign in to comment.