Add systemd/websocket.service

This commit is contained in:
TED A. ⭕ 2023-11-06 23:05:46 +00:00
parent 605ee64678
commit 0380080e92
1 changed files with 13 additions and 0 deletions

13
systemd/websocket.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=Restarts websocket server if it closes
[Service]
User=websocket
Working Directory=/var/www/html/collab/websocket/bin
ExecStart=/var/www/html/collab/websocket/bin/python3.11 /var/www/html/collab/websocket/websocket.py
Restart=always
RestartSec=60
RestartPreventExitStatus=SIGTERM
[Install]
WantedBy=multi-user.target