aboutsummaryrefslogtreecommitdiff
path: root/minecraft.service
diff options
context:
space:
mode:
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