add worker process chainetv

This commit is contained in:
vincent 2019-05-09 12:23:36 +02:00
parent 594909f745
commit 1ea36d66eb

View File

@ -9,7 +9,7 @@ User={{exec_user}}
Group={{exec_group}} Group={{exec_group}}
RuntimeDirectory=gunicorn RuntimeDirectory=gunicorn
WorkingDirectory={{source_location}} WorkingDirectory={{source_location}}
ExecStart={{venv_location}}{{venv_name}}/bin/gunicorn --pid /run/gunicorn-{{name}}/pid \ ExecStart={{venv_location}}{{venv_name}}/bin/gunicorn --workers=4 --pid /run/gunicorn-{{name}}/pid \
--bind unix:/run/gunicorn-{{name}}/socket run:app --bind unix:/run/gunicorn-{{name}}/socket run:app
ExecReload=/bin/kill -s HUP $MAINPID ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID ExecStop=/bin/kill -s TERM $MAINPID