Sha256: 6852061139a238936579b4dbfcdb3914045f63826530a3c816778200db28cb01
Contents?: true
Size: 790 Bytes
Versions: 3
Compression:
Stored size: 790 Bytes
Contents
namespace :rubber do namespace :monit do rubber.allow_optional_tasks(self) # monit needs to get stopped first and started last so that it doesn't # mess with us restarting everything as part of a deploy. before "rubber:pre_stop", "rubber:monit:stop" before "rubber:pre_restart", "rubber:monit:stop" after "rubber:post_start", "rubber:monit:start" after "rubber:post_restart", "rubber:monit:start" desc "Start monit daemon monitoring" task :start do sudo "/etc/init.d/monit start" end desc "Stop monit daemon monitoring" task :stop, :on_error => :continue do sudo "/etc/init.d/monit stop" end desc "Restart monit daemon monitoring" task :restart do stop start end end end
Version data entries
3 entries across 3 versions & 1 rubygems