Module: MonitCommandHelper

Defined in:
lib/capistrano-monit/monit_command_helper.rb

Overview

This module creates Capistrano tasks for controlling processes monitored by monit

Supported non-group commands are:

  • start, stop, restart, monitor, unmonitor

Supported group commands:

  • start_group, stop_group, restart_group, monitor_group, unmonitor_group

Providing ‘all’ as a non-group argument will affect all monitored services

Usage examples:

  • monit.restart_group :mongrel_cluster

  • monit.restart 'lighttpd'

  • monit.stop ['mongrel-9000','mongrel-9001']

  • monit.unmonitor :all

The methods are available through monit.<method name> in your deploy.rb

Constant Summary collapse

PROCESS_SIGNALS =
%w(start stop restart monitor unmonitor)