Files
Fail2banMqttActionBanishment/generic/supervisor/fail2ban-emitter-worker.example.conf
2026-07-20 11:05:07 +02:00

16 lines
772 B
Plaintext

; Gabarit supervisor pour le worker Celery (géolocalisation asynchrone).
; Alternative optionnelle au service systemd fail2ban-emitter-worker.service —
; voir generic/supervisor/fail2ban-emitter-web.example.conf pour la marche à
; suivre complète (ne pas activer les deux mécanismes en même temps).
[program:fail2ban-emitter-worker]
command=/bin/bash -lc 'set -a; source __ENV_FILE__; set +a; exec __EMITTER_DIR__/.venv/bin/celery -A config worker -l info'
directory=__EMITTER_DIR__
user=__EMITTER_USER__
environment=DJANGO_SETTINGS_MODULE="config.settings.production",PYTHONUNBUFFERED="1"
autostart=true
autorestart=true
stopsignal=TERM
stdout_logfile=/var/log/supervisor/fail2ban-emitter-worker.log
stderr_logfile=/var/log/supervisor/fail2ban-emitter-worker.log