0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-16 16:35:11 +00:00

added systemd to readme

This commit is contained in:
Piplup 2022-06-29 10:00:06 +01:00
parent 05606501af
commit 57aa595d11

View file

@ -20,6 +20,20 @@ dotnet run --project Server/Server.csproj -c Release
``` ```
If you ran `dotnet build` instead of `dotnet run`, you can find the binary at `Server/bin/net6.0/Release/Server.exe` If you ran `dotnet build` instead of `dotnet run`, you can find the binary at `Server/bin/net6.0/Release/Server.exe`
## Run under systemd
If you have systemd, you can use the existing systemd serivce.
1. cp smo.serivce /etc/systemd/system/smo.service
2. edit ExecStart to your path for the server executable
3. chmod +x filepath to the server executable
4. systemctl enable --now smo.service
**Known issues**
1. discord bot doesn't work, if you want to use a discord bot use screen or something that can keep the process running
## Commands ## Commands