mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 15:47:32 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
24
roles/mailman/templates/mailman-core.service.j2
Normal file
24
roles/mailman/templates/mailman-core.service.j2
Normal file
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=GNU Mailing List Manager
|
||||
After=syslog.target network.target postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile={{ mailman_root_dir }}/tmp/master.pid
|
||||
Environment=MAILMAN_CONFIG_FILE={{ mailman_root_dir }}/etc/mailman.cfg
|
||||
User={{ mailman_user }}
|
||||
Group={{ mailman_user }}
|
||||
ExecStart={{ mailman_root_dir }}/venv/bin/mailman start
|
||||
ExecReload={{ mailman_root_dir }}/venv/bin/mailman restart
|
||||
ExecStop={{ mailman_root_dir }}/venv/bin/mailman stop
|
||||
PrivateTmp=yes
|
||||
ProtectSystem=full
|
||||
ProtectHome=yes
|
||||
NoNewPrivileges=yes
|
||||
MemoryLimit=2048M
|
||||
Restart=on-failure
|
||||
StartLimitInterval=0
|
||||
RestartSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user