mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-10-07 06:54:55 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
24
roles/mailman/templates/mailman-web.service.j2
Normal file
24
roles/mailman/templates/mailman-web.service.j2
Normal file
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=GNU Mailman Web UI
|
||||
After=syslog.target network.target postgresql.service mailman-core.service
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
Environment=PATH={{ mailman_root_dir }}/venv/bin:/bin:/sbin
|
||||
Environment=PYTHONPATH=/opt/mailman/etc
|
||||
RuntimeDirectory=uwsgi
|
||||
User={{ mailman_user }}
|
||||
Group={{ mailman_user }}
|
||||
ExecStart={{ mailman_root_dir }}/venv/bin/uwsgi --ini {{ mailman_root_dir }}/etc/uwsgi.ini --die-on-term
|
||||
PrivateTmp=yes
|
||||
ProtectSystem=full
|
||||
ProtectHome=yes
|
||||
NoNewPrivileges=yes
|
||||
MemoryLimit=1024M
|
||||
Restart=on-failure
|
||||
StartLimitInterval=0
|
||||
RestartSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user