diff options
Diffstat (limited to 'script/jwebmail.service.in')
-rw-r--r-- | script/jwebmail.service.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/script/jwebmail.service.in b/script/jwebmail.service.in new file mode 100644 index 0000000..2be6e5d --- /dev/null +++ b/script/jwebmail.service.in @@ -0,0 +1,16 @@ +[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 |