vault backup: 2023-07-23 09:12:03

This commit is contained in:
zleyyij 2023-07-23 09:12:03 -06:00
parent c46f4877ed
commit 0a00f0a645

View File

@ -62,6 +62,8 @@ iptables:
``` ```
iptables -A INPUT -p tcp --dport 25565 -j ACCEPT iptables -A INPUT -p tcp --dport 25565 -j ACCEPT
``` ```
# Deploying Minecraft as a systemd service
This enables minecraft to run in the background, restart if it crashes, etc etc. This enables minecraft to run in the background, restart if it crashes, etc etc.
In `/etc/systemd/system`, place this file and tailor it to your liking. In `/etc/systemd/system`, place this file and tailor it to your liking.
@ -78,8 +80,11 @@ After=network-online.target
# User=foo # User=foo
# Group=bar # Group=bar
# Where you want the command to be run
# This command is run when the service is started # This command is run when the service is started
|ExecStart=/usr/bin/java -Xmx8G -Xms3g -jar /path/to/server.jar --nojline --noconsole ExecStart=/usr/bin/java -Xmx8G -Xms3g -jar /path/to/server.jar --nojline --noconsole
``` ```