Translations:Setting up a Multiplayer Server/73/ru

From Vintage Story Wiki
Revision as of 11:03, 2 March 2024 by Volkov (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Используйте свой любимый инструмент для создания файла сервиса(в данном примере используется nano)

 nano /usr/lib/systemd/system/vintagestoryserver.service

Вставьте следующее содержимое

 [Unit]
 Description=Vintage Story Server Unit
 After=network.target
 
 [Service]
 WorkingDirectory=/srv/gameserver/vintagestory
 ExecStart=dotnet VintagestoryServer.dll --dataPath /srv/gameserver/data/vs
 Restart=always
 RestartSec=30
 StandardOutput=syslog
 StandardError=syslog
 SyslogIdentifier=VSSRV
 User=gameserver
 Group=gameserver
 
 [Install]
 WantedBy=multi-user.target