Sha256: 32dc4ea689d57cde702c4493699b0f29141d2e7d70f53a4ad7a9d2dcfba1de2f
Contents?: true
Size: 370 Bytes
Versions: 5
Compression:
Stored size: 370 Bytes
Contents
namespace :monit do %w(start stop restart).each do |task_name| desc "#{task_name} Monit" task task_name do on roles(:app), in: :sequence, wait: 5 do sudo "service monit #{task_name}" end end end desc "Reload Monit" task 'reload' do on roles(:app), in: :sequence, wait: 5 do sudo "monit reload" end end end
Version data entries
5 entries across 5 versions & 1 rubygems