mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-03 03:33:18 +08:00
The gunicorn is sometimes getting killed by OOM (I assume it's the AI scrapers). So let's add automatic restart to get it back on track.
18 lines
346 B
Desktop File
18 lines
346 B
Desktop File
[Unit]
|
|
Description= Mailman Web ui
|
|
DefaultDependencies=no
|
|
After=network.target
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
[Service]
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
Type=simple
|
|
User=mailman
|
|
Group=mailman
|
|
WorkingDirectory=/etc/mailman3
|
|
ExecStart=/usr/bin/gunicorn -c /etc/mailman3/gunicorn.conf.py mailman_web.wsgi
|
|
ExecStop=/bin/kill -s TERM $MAINPID
|