Sha256: 462a4f7399fdeeeae8af07ee2220166e4c61fa7957d96ec23398eff42b25bd4e
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 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_port, 11006) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capitate-0.2.14 | lib/recipes/monit/backgroundrb.rb |