Hands-on task
supervisor brings a crashed daemon back
The queue handler /usr/local/bin/queue-consumer crashes now and then, and there's no systemd in the container — nobody brings it back up. Hand that job to supervisor: describe a program consumer that starts this daemon and restarts it automatically after it dies. The daemon reports its work to stdout — have supervisor store that output in /var/log/consumer.log.
- supervisor
- supervisorctl
- auto-restart
- stdout_logfile
- daemons