blob: d080738338690c2c8bf27375d08efbe5b47c1fef (
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
Requires=redis.service
[Service]
Type=simple
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
|