Adding a Program

Before supervisord will do anything useful for you, you’llneed to add at least one program section to its configuration.The program section will define a program that is run and managedwhen you invoke the supervisord command. To add a program,you’ll need to edit the supervisord.conf file.

One of the simplest possible programs to run is the UNIXcat program. A program section that will run catwhen the supervisord process starts up is shown below.

  1. [program:foo]
  2. command=/bin/cat

This stanza may be cut and pasted into the supervisord.conffile. This is the simplest possible program configuration, because itonly names a command. Program configuration sections have many otherconfiguration options which aren’t shown here. See[program:x] Section Settings for more information.