systemd service
This commit is contained in:
parent
097a5d0aca
commit
5660e09092
11
minecraft-launcher-server/minecraft-launcher-server.service
Normal file
11
minecraft-launcher-server/minecraft-launcher-server.service
Normal 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
|
||||||
5
minecraft-launcher-server/start.sh
Executable file
5
minecraft-launcher-server/start.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
source /home/timerix/.allrc
|
||||||
|
rm -rf bin/release
|
||||||
|
cd bin/publish
|
||||||
|
./minecraft-launcher-server
|
||||||
Loading…
Reference in New Issue
Block a user