Sha256: 5eacad9d9a4325dfbddd755dca74074ad449237a0b87b1a8bb51e3227e036acd
Contents?: true
Size: 393 Bytes
Versions: 15
Compression:
Stored size: 393 Bytes
Contents
lib_dir = File.expand_path(File.join(File.dirname(__FILE__), '../../lib')) if File.exist?(File.join(lib_dir, 'daemons.rb')) $LOAD_PATH.unshift lib_dir else begin; require 'rubygems'; rescue ::Exception; end end require 'daemons' options = { :log_output => true, :multiple => true, } Daemons.run_proc('ctrl_proc_multiple.rb', options) do puts 'hello' sleep(5) puts 'done' end
Version data entries
15 entries across 13 versions & 4 rubygems