adding the service files and and a script to gather them
This commit is contained in:
19
systemd/daphne.service
Normal file
19
systemd/daphne.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Websocket Daphne Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=westfarn
|
||||
Group=www-data
|
||||
WorkingDirectory=/home/westfarn/Documents/django_live_sites/Chat_Bot_Backend/llm_be
|
||||
ExecStart=/home/westfarn/Documents/django_live_sites/Chat_Bot_Backend/venv/bin/python /home/westfarn/Documents/django_live_sites/Chat_Bot_Backend/venv/bin/daphne -b 0.0.0.0 -p 8001 -v 0 llm_be.asgi:application
|
||||
Restart=always
|
||||
StartLimitBurst=2
|
||||
|
||||
#StartLimitInterval=600
|
||||
# Restart, but not more than once every 30s (for testing purposes)
|
||||
StartLimitInterval=30
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user