From 3bdd331dc58dd584777978c1ebbee6c2e4f3a0b3 Mon Sep 17 00:00:00 2001 From: Jens Timmerman Date: Sat, 12 Sep 2020 00:50:49 +0200 Subject: [PATCH] fix service file --- templates/im.service.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/im.service.j2 b/templates/im.service.j2 index 6122fff..255171c 100644 --- a/templates/im.service.j2 +++ b/templates/im.service.j2 @@ -4,8 +4,8 @@ After=network.target [Service] User={{ im_user }} -WorkingDirectory={{ im_home }} -ExecStart=/usr/local/bin/gunicorn --workers {{im_workers}} --bind {{ im_http_listen }}:{{ im_http_port }} im.wsgi:application +WorkingDirectory={{ im_home }}/im +ExecStart=gunicorn --workers {{im_workers}} --bind {{ im_http_listen }}:{{ im_http_port }} im.wsgi:application Restart=on-failure