From fb7ea1517da73501a6da96f1e4504a6bed6f55b1 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 5 Jan 2020 01:18:24 +0100 Subject: added unit file --- Readme.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Readme.md') diff --git a/Readme.md b/Readme.md index 29a3792..6ab827e 100644 --- a/Readme.md +++ b/Readme.md @@ -41,6 +41,14 @@ The following example copies the created archive to a remote server. BACKUP_HOOK="scp $ARCHNAME user@server:/home/user/backups/" +## Start automatically + +Create user and group `minecraft` with home in `/var/minecraft`. +Populate the directory with server.sh and a server jar. +Place `minecraft.service` in `/etc/systemd/system/` +and run `systemctl start minecraft` to start once or +`systemctl enable minecraft` to enable autostarting. + ## Disclaimer The scripts are provided as-is at no warranty. -- cgit v1.2.3