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

Version Path
sml-rubber-0.9.1 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
sml-rubber-0.9.10 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
sml-rubber-0.9.11 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
sml-rubber-0.9.13 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
sml-rubber-0.9.3 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
sml-rubber-0.9.4 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
sml-rubber-0.9.5 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
sml-rubber-0.9.6 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
sml-rubber-0.9.7 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
sml-rubber-0.9.8 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
sml-rubber-0.9.9 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
wr0ngway-rubber-1.0.0 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
wr0ngway-rubber-1.0.1 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
axtro-rubber-1.2.3 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
axtro-rubber-1.2.2 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.2.1 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
axtro-rubber-1.2.1 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
axtro-rubber-1.2.0 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
axtro-rubber-1.0.2.8 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
axtro-rubber-1.0.2.7 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb