Created
March 16, 2020 12:43
-
-
Save Eskuero/b5611e772d7b4cb0ca59b2de8d45a41e to your computer and use it in GitHub Desktop.
OpenRC minecraft startup config to run as unprivileged user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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