add systemctl service

This commit is contained in:
Cyberes 2023-08-21 23:25:53 -06:00
parent 6e3ddab42e
commit cb2ba1455d
1 changed files with 15 additions and 0 deletions

15
other/local-llm.service Normal file
View File

@ -0,0 +1,15 @@
[Unit]
Description=Local LLM Proxy
Wants=basic.target
After=basic.target network.target
[Service]
User=server
Group=server
WorkingDirectory=/srv/server/local-llm-server
ExecStart=/srv/server/local-llm-server/venv/bin/gunicorn --workers 3 --bind 0.0.0.0:5000 server:app
Restart=always
RestartSec=2
[Install]
WantedBy=multi-user.target