mirror of
https://old.git.ood.ovh/eco/server-config.git
synced 2025-04-28 22:28:51 +02:00
Add save of systemd-servive
This commit is contained in:
parent
cfa88265e6
commit
910b6197f4
1 changed files with 17 additions and 0 deletions
17
eco.service
Normal file
17
eco.service
Normal 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
|
Loading…
Add table
Reference in a new issue