Sha256: a34862f545b2b66541704a4ef2628210f7acff0cb4fcde2fa3b48c3fd2443fdc
Contents?: true
Size: 846 Bytes
Versions: 2
Compression:
Stored size: 846 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, :roles => :monit do rsudo "service monit status || service monit start" end desc "Stop monit daemon monitoring" task :stop, :roles => :monit do rsudo "service monit stop || true" end desc "Restart monit daemon monitoring" task :restart, :roles => :monit do stop start end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubber-2.2.4 | templates/monit/config/rubber/deploy-monit.rb |
rubber-2.2.3 | templates/monit/config/rubber/deploy-monit.rb |