Skip to content

Instantly share code, notes, and snippets.

Avatar
🐱

Alsein AlseinX

🐱
View GitHub Profile
@nathanielc
nathanielc / gist:9b98350ccbcbf21256d7
Created Aug 20, 2014
Minecraft systemd unit file
View gist:9b98350ccbcbf21256d7
[root@plex ~]# cat /etc/systemd/system/minecraft@.service
[Unit]
Description=Minecraft Server %i
[Service]
WorkingDirectory=/opt/minecraft-%i
User=mcserver
ExecStart=/usr/bin/screen -DmS mc-%i /bin/java -Xmx2048M -jar minecraft_server.jar nogui