adding the service files and and a script to gather them

This commit is contained in:
2025-10-21 21:02:17 -05:00
parent 3d1d8a12d5
commit 283acd26c4
12 changed files with 169 additions and 0 deletions

19
systemd/daphne.service Normal file
View 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