19 lines
478 B
Desktop File
19 lines
478 B
Desktop File
[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
|