[Unit] Description=gunicorn daemon Requires=gunicorn.socket After=network.target [Service] PIDFile=/run/gunicorn/pid User=root Group=root RuntimeDirectory=gunicorn WorkingDirectory=/srv/chainetv_web/backend ExecStart=/usr/bin/gunicorn --pid /run/gunicorn/pid \ --bind unix:/run/gunicorn/socket run:app ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s TERM $MAINPID PrivateTmp=true [Install] WantedBy=multi-user.target [Unit] Description=gunicorn socket