simple-chat / chatbot.service
alex4cip's picture
feat: Add systemd service for automatic startup on Linux
1a8caac
raw
history blame contribute delete
464 Bytes
[Unit]
Description=Multi-Model Chatbot Gradio Service
After=network.target
[Service]
Type=simple
User=YOUR_USERNAME
WorkingDirectory=/path/to/simple-chatbot-gradio
Environment="PATH=/path/to/simple-chatbot-gradio/venv/bin:/usr/bin:/bin"
ExecStart=/path/to/simple-chatbot-gradio/venv/bin/python app.py
Restart=on-failure
RestartSec=10
StandardOutput=append:/var/log/chatbot.log
StandardError=append:/var/log/chatbot-error.log
[Install]
WantedBy=multi-user.target