Files
holy-python/deploy/holy-crab.service

19 lines
478 B
SYSTEMD
Raw Permalink Normal View History

2026-08-04 14:02:45 +08:00
[Unit]
Description=Holy Crab Monitoring Platform Backend
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=ubuntu
Group=ubuntu
WorkingDirectory=/opt/holy-crab/backend
EnvironmentFile=/etc/holy-crab.env
ExecStart=/opt/holy-crab/backend/.venv/bin/gunicorn --bind 127.0.0.1:18000 --workers 1 --threads 8 --timeout 180 --access-logfile - --error-logfile - app:app
Restart=always
RestartSec=3
TimeoutStopSec=30
[Install]
WantedBy=multi-user.target