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
rubber-1.2.0 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
nirvdrum-rubber-1.1.7 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.1.7 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.1.6 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.1.5 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.1.4 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.1.3 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.1.2 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.1.1 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.1.0 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
axtro-rubber-1.0.2.6 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
axtro-rubber-1.0.2.5 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
axtro-rubber-1.0.2.4 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
axtro-rubber-1.0.2.3 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
axtro-rubber-1.0.2.2 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
axtro-rubber-1.0.2.1 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
rubber-1.0.2 generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb