Sha256: c54ddcd102bdb734d54b67e129bc1c98b3c2226fe52e1a3f72f6af71ff9c9737

Contents?: true

Size: 768 Bytes

Versions: 80

Compression:

Stored size: 768 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
      rsudo "service monit start"
    end
    
    desc "Stop monit daemon monitoring"
    task :stop do
      rsudo "service monit stop; exit 0"
    end
    
    desc "Restart monit daemon monitoring"
    task :restart do
      stop
      start
    end
  
  end

end

Version data entries

80 entries across 40 versions & 6 rubygems

Version Path
rubber-1.15.0 lib/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.15.0 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.14.1 lib/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.14.1 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.14.0 lib/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.14.0 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.13.2 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.13.2 lib/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.13.1 lib/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.13.1 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.13.0 lib/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.13.0 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.12.2 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.12.2 lib/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.12.1 lib/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.12.1 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.12.0 lib/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.12.0 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.11.0 lib/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.11.0 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb