Advertisement
Guest User

script

a guest
Apr 2nd, 2020
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. root@ubuntu:~# cat /etc/systemd/system/minecraft.service
  2. #!/bin/bash
  3. [Unit]
  4. Description = Launches Minecraft Servers
  5. After = network.target
  6. ConditionHost = kodigst
  7.  
  8. [Service]
  9. WorkingDirectory = /opt/minecraft/bukkit/%i
  10. Type = forking
  11. User = minecraft
  12. Group = minecraft
  13. ExecStart = /usr/bin/screen -dmS %i /usr/bin/java -server -DIReallyKnowWhatIAmDoingISwear -XX:ParallelGCThreads=4 -Xmx3G -Xms3G -jar bukkit-current.jar nogui
  14. ExecStop = /usr/local/bin/mcstop %i
  15.  
  16. [Install]
  17. WantedBy = multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement