aboutsummaryrefslogtreecommitdiff
path: root/Readme.md
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-01-05 01:18:24 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-01-05 01:18:24 +0100
commitfb7ea1517da73501a6da96f1e4504a6bed6f55b1 (patch)
tree87ab63d27c937b8075a187150e82b519a8893d94 /Readme.md
parent81e68ebc5bfc4585448bcdcdb70841cb54e735ee (diff)
downloadminecraft-server-tools-fb7ea1517da73501a6da96f1e4504a6bed6f55b1.tar.gz
added unit file
Diffstat (limited to 'Readme.md')
-rw-r--r--Readme.md8
1 files changed, 8 insertions, 0 deletions
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.