correctly add service

This commit is contained in:
Sebastian Hugentobler 2020-08-03 16:15:03 +02:00
parent 31b8592450
commit e17d4c601b
3 changed files with 4 additions and 8 deletions

View File

@ -1,4 +0,0 @@
[template]
src = "run.tmpl"
dest = "/etc/services.d/minecraft/run"
mode = "0750"

View File

@ -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

View File

@ -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