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 --- minecraft.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 minecraft.service (limited to 'minecraft.service') 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 -- cgit v1.2.3