ReleaseEngineering/PuppetAgain/Modules/supervisord

From MozillaWiki
Jump to: navigation, search

This module manages supervisord and its supervised processes.

supervisord::supervise

Use this define to have supervisord monitor a process. It takes the following parameters:

command
the commandline to run
user
User to run the process under.
autostart
should this process be started when supervisord starts? defaults to true
autorestart
should the process be restarted if it exits? defaults to true
environment
a list of 'VAR=value' strings to be put into the process's environment
extra_config
a string that is included in the supervisord [program:x] section

Example

supervisord::supervise {
  "Xvfb":
     command => "Xvfb :2",
     user => "cltbld";
}