Add systemd/websocket.service
This commit is contained in:
parent
605ee64678
commit
0380080e92
|
@ -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
|
Loading…
Reference in New Issue