[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