[Unit] Description=JWebmail managed by gunicorn After=network.target Requires=redis.service [Service] Type=exec User=jmhoffmann Environment=JWEBMAIL_CONFIG="/@PREFIX@/jwebmail.toml" ExecStart=@PROJECT_PATH@/.venv/bin/gunicorn -b :5000 -w 4 --pythonpath "@PROJECT_PATH@/src/" -n jwebmail 'jwebmail:create_app()' ExecReload=/bin/kill -s HUP $MAINPID KillMode=mixed TimeoutStopSec=5 [Install] WantedBy=multi-user.target