You can set the Game Server up as a systemd service
vim /etc/systemd/system/vintagestory.service
You need to make sure that your WorkingDirectory and ExecStart paths are correct. I installed my game server in /opt/vintagestory/server, yours may be different
Same with your User and Group
[Unit]
Description=Vintage Story Server Unit
After=network.target
[Service]
WorkingDirectory=/opt/vintagestory/server
ExecStart=dotnet VintagestoryServer.dll --dataPath /opt/vintagestory/data
Restart=always
RestartSec=30
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=VSSRV
User=vintagestory
Group=vintagestory
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl start vintagestory.service
systemctl enable vintagestory.service
To see the logs you can either look at syslog or run:
journalctl -u vintagestory.service -f
This sets the game service to restart on every 30 seconds as long as the service is enables