[Unit] Description=Gunicorn instance to serve ms-reporting After=network.target [Service] User=gsl Group=www-data WorkingDirectory=/home/gsl/ms-reporting/production Environment="PYTHONUNBUFFERED=1 PATH=/home/gsl/ms-reporting/production/bin" ExecStart=/home/gsl/ms-reporting/production/bin/gunicorn --workers 16 --threads 4 --worker-class sync --backlog 2048 --bind 0.0.0.0:52011 --timeout 300 --keep-alive 10 --preload wsgi:app Restart=always RestartSec=5 StartLimitBurst=5 [Install] WantedBy=multi-user.target