commit ffca7d93e6ea532671511f0a8275e29bde806bbf Author: Peter J. Holzer Date: Sun Aug 1 15:11:46 2021 +0200 Initial release diff --git a/gunicorn-multi@.service b/gunicorn-multi@.service new file mode 100644 index 0000000..b52a9e3 --- /dev/null +++ b/gunicorn-multi@.service @@ -0,0 +1,13 @@ +[Unit] +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 +Restart=on-failure +RestartSec=10 + +[Install] +WantedBy=multi-user.target