OperationGoldenEagle

minecraft systemd

Nov 27th, 2022
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. [Unit]
  2. Description=PaperMC
  3. Requires=network-online.target
  4.  
  5. [Service]
  6. WorkingDirectory=/mnt/usb1/appdata/config/minecraft-config
  7. User=argon
  8. Group=argon
  9. Type=forking
  10.  
  11. ExecStart=/usr/bin/tmux new-session -s mcs -d 'java -Xmx2048M -jar paper.jar nogui'
  12. ExecStop=/usr/bin/tmux send-keys -t mc-%i:0.0 'say SERVER SHUTTING DOWN. Saving map...' C-m 'save-all' C-m 'stop' C-m
  13. ExecStop=/bin/sleep 2
  14.  
  15. [Install]
  16. WantedBy=multi-user.target
  17.  
Advertisement
Add Comment
Please, Sign In to add comment