Files
mostovik-backend/deploy/systemd/gunicorn.service
Aleksandr Meshchriakov c9b350da1e
Some checks failed
CI/CD Pipeline / Code Quality Checks (pull_request) Failing after 9s
CI/CD Pipeline / Run Tests (pull_request) Failing after 48s
CI/CD Pipeline / Build Docker Images (pull_request) Has been skipped
CI/CD Pipeline / Push to Gitea Registry (pull_request) Has been skipped
feat: add parser source dashboard and scheduling
2026-04-28 00:10:33 +02:00

30 lines
712 B
Desktop File

[Unit]
Description=Gunicorn daemon for Django project
After=network.target
[Service]
Type=notify
User=www-data
Group=www-data
EnvironmentFile=/var/www/project/.env
Environment=DJANGO_SETTINGS_MODULE=config.settings.production
RuntimeDirectory=gunicorn
WorkingDirectory=/var/www/project/src
ExecStart=/var/www/project/venv/bin/gunicorn config.wsgi:application \
--bind unix:/run/gunicorn.sock \
--workers 3 \
--worker-class gevent \
--worker-connections 1000 \
--timeout 30 \
--keep-alive 2 \
--max-requests 1000 \
--max-requests-jitter 100 \
--preload
ExecReload=/bin/kill -s HUP $MAINPID
KillMode=mixed
TimeoutStopSec=5
PrivateTmp=true
[Install]
WantedBy=multi-user.target