feat: add bds core, locale updates and safety fixes
This commit is contained in:
15
templates/service-systemd.tpl
Normal file
15
templates/service-systemd.tpl
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Minecraft {{CORE_NAME}} server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User={{SERVER_USER}}
|
||||
Group={{SERVER_USER}}
|
||||
WorkingDirectory={{SERVER_DIR}}
|
||||
ExecStart={{START_SCRIPT}}
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
17
templates/service-tmux.tpl
Normal file
17
templates/service-tmux.tpl
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Minecraft {{CORE_NAME}} server (tmux)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
User={{SERVER_USER}}
|
||||
Group={{SERVER_USER}}
|
||||
WorkingDirectory={{SERVER_DIR}}
|
||||
ExecStart=/usr/bin/tmux new-session -d -s {{SERVICE_NAME}} '{{START_SCRIPT}}'
|
||||
ExecStop=/usr/bin/tmux send-keys -t {{SERVICE_NAME}} 'stop' C-m
|
||||
ExecStopPost=/bin/sleep 8
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
4
templates/start-java.tpl
Normal file
4
templates/start-java.tpl
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
exec java -Xms{{RAM}} -Xmx{{RAM}} {{JAVA_OPTS}} -jar {{JAR_FILE}}
|
||||
4
templates/start-pmmp.tpl
Normal file
4
templates/start-pmmp.tpl
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
./start.sh "$@"
|
||||
Reference in New Issue
Block a user