>_ IzzyLab

Topic breakdown

supervisor is a process manager: it starts programs, watches over them, and brings them back after a crash, which is handy for daemons that can't run as a system service. Each program is described by a [program:NAME] block in a file inside /etc/supervisor/conf.d/; a command= line with the path to the binary and an auto-restart directive are mandatory. Here you need two independent blocks (web and worker) — they can be kept in one file or in two. To make supervisor pick up new configs without a full restart, use supervisorctl reread and update, and check status via supervisorctl status.

What's checked

  1. program web is in RUNNING state
  2. program worker is in RUNNING state
  3. the programs restart after a crash

What it looks like