Sha256: b06c7997d19b2fcde17aac46c0c7c571af70f619c92f5b1c50656402c805f933
Contents?: true
Size: 788 Bytes
Versions: 37
Compression:
Stored size: 788 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 run "/etc/init.d/monit start" end desc "Stop monit daemon monitoring" task :stop, :on_error => :continue do run "/etc/init.d/monit stop" end desc "Restart monit daemon monitoring" task :restart do stop start end end end
Version data entries
37 entries across 37 versions & 5 rubygems