Supervisor utilities

The following functions are available through the CLI, e.g. fab <dev/stage/live/...> <command>

Configuration files

dploi_fabric.supervisor.add()[source]
dploi_fabric.supervisor.update()[source]
dploi_fabric.supervisor.update_config_file()[source]

Process management

dploi_fabric.supervisor.start()[source]
dploi_fabric.supervisor.stop()[source]
dploi_fabric.supervisor.restart()[source]
dploi_fabric.supervisor.status()[source]

print status of the supervisor process

Note: “status” does not yet support the group syntax

Settings

Can be set in config.ini in the [supervisor] section or in deployment.py in this site supervisor section:

  • template (default: bundled dploi_fabric/templates/supervisor/supervisor.conf)
  • group_template (default: bundled dploi_fabric/templates/supervisor/supervisor-group.conf)
  • gunicorn_command_template (default: bundled dploi_fabric/templates/supervisor/gunicorn_command)
  • celeryd_command_template (default: bundled dploi_fabric/templates/supervisor/celeryd_command)
  • celerycam_command_template (default: bundled dploi_fabric/templates/supervisor/celerycam_command)