feat: add bds core, locale updates and safety fixes
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user