Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@ubuntu:~# cat /etc/systemd/system/minecraft.service
- #!/bin/bash
- [Unit]
- Description = Launches Minecraft Servers
- After = network.target
- ConditionHost = kodigst
- [Service]
- WorkingDirectory = /opt/minecraft/bukkit/%i
- Type = forking
- User = minecraft
- Group = minecraft
- ExecStart = /usr/bin/screen -dmS %i /usr/bin/java -server -DIReallyKnowWhatIAmDoingISwear -XX:ParallelGCThreads=4 -Xmx3G -Xms3G -jar bukkit-current.jar nogui
- ExecStop = /usr/local/bin/mcstop %i
- [Install]
- WantedBy = multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement