Sha256: 2bcf3e5745bb249a98b0d0f13d9b93ed1da18b62a8602608ee5a04c9ecc8812e
Contents?: true
Size: 1.07 KB
Versions: 8
Compression:
Stored size: 1.07 KB
Contents
namespace :backgroundrb do namespace :monit do desc <<-DESC Generate and install backgroundrb (for application) monitrc. "Source":#{link_to_source(__FILE__)} DESC task :install do # Settings fetch_or_default(:backgroundrb_pid_path, "#{shared_path}/pids/backgroundrb.pid") fetch_or_default(:monit_conf_dir, "/etc/monit") utils.install_template("backgroundrb/backgroundrb.monitrc.erb", "#{monit_conf_dir}/backgroundrb.monitrc") end desc "Restart backgroundrb (for application)" task :restart do fetch_or_default(:monit_bin_path, "monit") sudo "#{monit_bin_path} restart backgroundrb_#{application}" end desc "Start backgroundrb (for application)" task :start do fetch_or_default(:monit_bin_path, "monit") sudo "#{monit_bin_path} start backgroundrb_#{application}" end desc "Stop backgroundrb (for application)" task :stop do fetch_or_default(:monit_bin_path, "monit") sudo "#{monit_bin_path} stop backgroundrb_#{application}" end end end
Version data entries
8 entries across 8 versions & 2 rubygems