dingxin_toolbox
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
489 B

[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