systemd service

This commit is contained in:
timerix-server 2024-01-05 22:23:20 +03:00
parent 097a5d0aca
commit 5660e09092
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,11 @@
# put this file in /etc/systemd/system/
[Unit]
Description=minecraft launcher backend in c#
[Service]
WorkingDirectory=/opt/minecraft-launcher/minecraft-launcher-server/
ExecStart=/bin/bash /opt/minecraft-launcher/minecraft-launcher-server/start.sh
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,5 @@
#!/bin/bash
source /home/timerix/.allrc
rm -rf bin/release
cd bin/publish
./minecraft-launcher-server