Hands-on task
Two daemons and a graceful stop
Two programs must run under supervisor: ingest (/usr/local/bin/ingestd) and notifier (/usr/local/bin/notifierd), both restarted automatically after a crash.
There's a catch: notifierd shuts down cleanly (flushes its queue and leaves the marker /var/tmp/notifier.graceful) only on the INT signal, while on TERM, which supervisor sends by default, it simply dies. Make supervisorctl stop notifier stop it with INT.
- supervisor
- stopsignal
- SIGINT
- auto-restart
- graceful shutdown