From 896e123f713acef37da3989062f52ad5159a5cda Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Thu, 28 Sep 2023 12:00:36 +0200 Subject: [PATCH] Use %i instead of %I The template argument is (part of) a domain name, not a path, so it makes no sense to convert - into /. Just use it as specified. --- gunicorn-multi@.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gunicorn-multi@.service b/gunicorn-multi@.service index b52a9e3..d2724f0 100644 --- a/gunicorn-multi@.service +++ b/gunicorn-multi@.service @@ -1,11 +1,11 @@ [Unit] -Description=Gunicorn server for %I +Description=Gunicorn server for %i After=network.target nss-lookup.target network-online.target nss-user-lookup.target [Service] Type=simple -WorkingDirectory=/usr/local/www/%I/app -ExecStart=/usr/local/www/%I/app/venv/bin/gunicorn -c /usr/local/www/%I/config/gunicorn/gunicorn.conf.py +WorkingDirectory=/usr/local/www/%i/app +ExecStart=/usr/local/www/%i/app/venv/bin/gunicorn -c /usr/local/www/%i/config/gunicorn/gunicorn.conf.py Restart=on-failure RestartSec=10