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