diff --git a/templates/systemd/gunicorn.service.j2 b/templates/systemd/gunicorn.service.j2 index b734562..36eb295 100644 --- a/templates/systemd/gunicorn.service.j2 +++ b/templates/systemd/gunicorn.service.j2 @@ -7,7 +7,7 @@ After=network.target PIDFile=/run/gunicorn-{{name}}/pid User={{exec_user}} Group={{exec_group}} -RuntimeDirectory=gunicorn +RuntimeDirectory=gunicorn-{{name}} WorkingDirectory={{source_location}} ExecStart={{venv_location}}{{venv_name}}/bin/gunicorn --workers=4 --pid /run/gunicorn-{{name}}/pid \ --bind unix:/run/gunicorn-{{name}}/socket run:app