# /etc/systemd/system/labelinfo.service [Unit] Description=Label Info TV (Django / gunicorn) After=network.target mysql.service [Service] User=www-data Group=www-data WorkingDirectory=/var/www/labelinfo EnvironmentFile=/var/www/labelinfo/.env ExecStart=/var/www/labelinfo/.venv/bin/gunicorn labelinfo.wsgi:application \ --bind unix:/run/labelinfo/gunicorn.sock --workers 3 --timeout 60 \ --max-requests 1000 --max-requests-jitter 100 --access-logfile - --error-logfile - RuntimeDirectory=labelinfo Restart=always [Install] WantedBy=multi-user.target