aboutsummaryrefslogtreecommitdiff
path: root/minecraft.service
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 /minecraft.service
parent81e68ebc5bfc4585448bcdcdb70841cb54e735ee (diff)
downloadminecraft-server-tools-fb7ea1517da73501a6da96f1e4504a6bed6f55b1.tar.gz
added unit file
Diffstat (limited to 'minecraft.service')
-rw-r--r--minecraft.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/minecraft.service b/minecraft.service
new file mode 100644
index 0000000..f261625
--- /dev/null
+++ b/minecraft.service
@@ -0,0 +1,16 @@
+# minecraft.service
+
+[Unit]
+Description=Minecraft Server
+
+[Service]
+Type=forking
+User=minecraft
+Group=minecraft
+PIDFile=/var/minecraft/server-screen.pid
+ExecStart=/var/minecraft/server.sh start
+TimeoutStopSec= 180
+ExecStop=/var/minecraft/server.sh stop
+
+[Install]
+WantedBy=multi-user.target