Files
classifieds/deploy/classifieds.service
2026-06-15 11:23:05 -04:00

21 lines
523 B
Desktop File

[Unit]
Description=Classifieds Flask app (Gunicorn)
After=network.target mysql.service redis-server.service
Wants=redis-server.service
[Service]
Type=notify
User=classifieds
Group=classifieds
WorkingDirectory=/opt/classifieds
Environment="PATH=/opt/classifieds/venv/bin"
EnvironmentFile=/opt/classifieds/.env
RuntimeDirectory=classifieds
ExecStart=/opt/classifieds/venv/bin/gunicorn -c deploy/gunicorn.conf.py wsgi:app
ExecReload=/bin/kill -s HUP $MAINPID
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target