From 3b4be18dbfb3ef6d7cc486d48f498997a4ede35c Mon Sep 17 00:00:00 2001 From: zleyyij Date: Sun, 23 Jul 2023 09:15:03 -0600 Subject: [PATCH] vault backup: 2023-07-23 09:15:03 --- Setting up a Minecraft server.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Setting up a Minecraft server.md b/Setting up a Minecraft server.md index b96b67f..6c3c7ab 100644 --- a/Setting up a Minecraft server.md +++ b/Setting up a Minecraft server.md @@ -86,6 +86,13 @@ WorkingDirectory=/opt/minecraft ExecStart=/usr/bin/java -Xmx8G -Xms3g -jar /path/to/server.jar nogui ``` -Then run `suudo ` +Then run `sudo sytemctl enable minecraft.service` to have the server start up when the server is rebooted. + +## Utility systemctl commands +``` +# start the server +sudo systemctl start minecraft.service +# resta +``` // TODO: https://unix.stackexchange.com/questions/612137/how-to-write-to-stdin-of-a-service