[Unit] Description=%s through the Gunicorn WSGI server After=network.target [Service] # User and group not set since they are simpler to configure in the # config file Type=simple PrivateDevices=yes PrivateTmp=true ExecStart=gunicorn --config /var/lib/gunicorn/%s.conf.py ExecReload=/bin/kill -s HUP $MAINPID [Install] WantedBy=multi-user.target