summaryrefslogtreecommitdiff
path: root/script/jwebmail.service.in
blob: 2be6e5dc462d33d234f310090275a7b748b16ca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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