[Unit] Description=gunicorn daemon After=network.target [Service] Type=simple pidfile=/tmp/gunicorn.pid User=root Group=root RuntimeDirectory=gunicorn WorkingDirectory=/code/dingxin_toolbox_drf ExecStart=/code/dingxin-server/bin/gunicorn -k -k uvicorn.workers.UvicornWorker -c /code/dingxin_toolbox_drf/gunicorn_config.py dingxin_toolbox_drf.wsgi:application ExecReload=/bin/kill -s hup $mainpid ExecStop=/bin/kill -s quit $mainpid PrivateTmp=true [Install] WantedBy=multi-user.target