correctly add service
This commit is contained in:
parent
31b8592450
commit
e17d4c601b
@ -1,4 +0,0 @@
|
||||
[template]
|
||||
src = "run.tmpl"
|
||||
dest = "/etc/services.d/minecraft/run"
|
||||
mode = "0750"
|
@ -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
|
4
rootfs/etc/services.d/minecraft/run
Executable file
4
rootfs/etc/services.d/minecraft/run
Executable 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
|
Loading…
Reference in New Issue
Block a user