Include a sample service file

This commit is contained in:
2023-03-02 21:33:12 +01:00
parent 2e862bdf58
commit d6d5207040

View File

@@ -48,3 +48,17 @@ socket.addEventListener('message', (event) => {
console.log('Message from server', JSON.parse(event.data));
});
```
## Run as Linux service
```
[Unit]
Description=Scrabble with numbers - WebSocket Server
After=network.target
[Service]
ExecStart=board-server '0.0.0.0:21110'
[Install]
WantedBy=multi-user.target
```