[Unit] Description=GNU Mailman web interfaces After=syslog.target network.target [Service] PIDFile=/opt/mailman/mm/var/gunicorn.pid WorkingDirectory=/opt/mailman/mm ExecStart=/opt/mailman/mm/bin/gunicorn -c /opt/mailman/mm/gunicorn.conf wsgi:application ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s QUIT $MAINPID PrivateTmp=true # Change to a different user (and group) here User=mailman Group=mailman [Install] WantedBy=multi-user.target