Add save of systemd-servive

This commit is contained in:
Hactarus 2020-04-22 10:08:45 +00:00
parent cfa88265e6
commit 910b6197f4

17
eco.service Normal file
View file

@ -0,0 +1,17 @@
[Unit]
Description=Eco game Server
After=network.target
StartLimitIntervalSec=5
[Service]
Type=simple
Restart=always
RestartSec=30
User=steam
WorkingDirectory=/home/steam
ExecStartPre=/usr/bin/git fetch --all
ExecStartPre=/usr/bin/git reset --hard origin/master
ExecStart=/home/steam/EcoServer.sh -nogui
[Install]
WantedBy=multi-user.target