vault backup: 2023-07-23 09:12:03
This commit is contained in:
		| @@ -62,6 +62,8 @@ iptables: | ||||
| ``` | ||||
| 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. | ||||
|  | ||||
| In `/etc/systemd/system`, place this file and tailor it to your liking. | ||||
| @@ -78,8 +80,11 @@ After=network-online.target | ||||
| # User=foo | ||||
| # Group=bar | ||||
|  | ||||
| # Where you want the command to be run | ||||
|  | ||||
|  | ||||
| # 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 | ||||
| ``` | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 zleyyij
					zleyyij