Sha256: 8a8218b7457f08eaa53eadf647c8ddcfdd202193394dfe77013b8e9a312a1077
Contents?: true
Size: 339 Bytes
Versions: 15
Compression:
Stored size: 339 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' Daemons.run_proc('ctrl_proc_simple.rb') do loop do puts 'ping from proc!' sleep(3) end end
Version data entries
15 entries across 13 versions & 4 rubygems