From e17d4c601ba28665a28739f0fbaada706ebda7c7 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Mon, 3 Aug 2020 16:15:03 +0200 Subject: [PATCH] correctly add service --- rootfs/etc/confd/conf.d/run.toml | 4 ---- rootfs/etc/confd/templates/run.tmpl | 4 ---- rootfs/etc/services.d/minecraft/run | 4 ++++ 3 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 rootfs/etc/confd/conf.d/run.toml delete mode 100644 rootfs/etc/confd/templates/run.tmpl create mode 100755 rootfs/etc/services.d/minecraft/run diff --git a/rootfs/etc/confd/conf.d/run.toml b/rootfs/etc/confd/conf.d/run.toml deleted file mode 100644 index 6b8d0db..0000000 --- a/rootfs/etc/confd/conf.d/run.toml +++ /dev/null @@ -1,4 +0,0 @@ -[template] -src = "run.tmpl" -dest = "/etc/services.d/minecraft/run" -mode = "0750" \ No newline at end of file diff --git a/rootfs/etc/confd/templates/run.tmpl b/rootfs/etc/confd/templates/run.tmpl deleted file mode 100644 index 75d8271..0000000 --- a/rootfs/etc/confd/templates/run.tmpl +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/with-contenv sh - -cd /var/lib/minecraft -exec s6-setuidgid minecraft java -Xms{{getenv "MIN_RAM" "512M"}} -Xmx{{getenv "MAX_RAM" "512M"}} -jar /var/lib/minecraft/spigot.jar diff --git a/rootfs/etc/services.d/minecraft/run b/rootfs/etc/services.d/minecraft/run new file mode 100755 index 0000000..ca2acd6 --- /dev/null +++ b/rootfs/etc/services.d/minecraft/run @@ -0,0 +1,4 @@ +#!/usr/bin/with-contenv sh + +cd /var/lib/minecraft +exec s6-setuidgid minecraft java -Xms${MIN_RAM:-512M} -Xmx${MAX_RAM:-512M} -jar /var/lib/minecraft/paper.jar