diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-11-01 17:37:56 +0100 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2024-11-01 17:37:56 +0100 |
commit | 936e4036876048a25d3b64a53ffd3c7af16b73b8 (patch) | |
tree | 91253b18e917739e74c9e87585004657e429ff55 /script | |
parent | 38dc1cde0d8ff6c52c39ec71be14a98946f04bad (diff) |
bump version; update unit file and deployment script
Diffstat (limited to 'script')
-rw-r--r-- | script/jwebmail.service.in | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/script/jwebmail.service.in b/script/jwebmail.service.in index 2be6e5d..d080738 100644 --- a/script/jwebmail.service.in +++ b/script/jwebmail.service.in @@ -1,16 +1,25 @@ [Unit] Description=JWebmail managed by gunicorn -After=network.target +After=network-online.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()' +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 |