Skip to content

Instantly share code, notes, and snippets.

@Eskuero
Created March 16, 2020 12:43
Show Gist options
  • Save Eskuero/b5611e772d7b4cb0ca59b2de8d45a41e to your computer and use it in GitHub Desktop.
Save Eskuero/b5611e772d7b4cb0ca59b2de8d45a41e to your computer and use it in GitHub Desktop.
OpenRC minecraft startup config to run as unprivileged user
#!/sbin/openrc-run
description="Start minecraft server"
command_user="minecraft:minecraft"
command="/usr/bin/java"
command_args="-Xmx1024M -Xms1024M -jar server.jar nogui"
pidfile=mine.pid
command_background=true
directory="/home/minecraft"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment