[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