summaryrefslogtreecommitdiff
path: root/script/jwebmail.service.in
blob: 430e51701fd96a7f8c264c6867e3098ba499caa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[Unit]
Description=JWebmail managed by gunicorn
After=network-online.target

[Service]
Type=notify
NotifyAccess=main
User=jwebmail
RuntimeDirectory=jwebmail
Environment=JWEBMAIL_CONFIG="@CONFDIR@/jwebmail.toml"
ExecStart=@BINDIR@/gunicorn -b unix:%t/jwebmail/jwebmail.socket -w 4 -n jwebmail 'jwebmail:create_app()'
ExecReload=/bin/kill -s HUP $MAINPID
KillMode=mixed
TimeoutStopSec=5

PrivateTmp=yes
ProtectSystem=full
ProtectProc=invisible
ProtectControlGroups=yes

KeyringMode=private
RemoveIPC=yes

[Install]
WantedBy=multi-user.target