Sha256: ff147db1fcc591915efdad879f39810af4a57e3f8ec42f3eb77a19d62e3555fb
Contents?: true
Size: 357 Bytes
Versions: 2
Compression:
Stored size: 357 Bytes
Contents
require 'daemons' daemon_dir = Dir.pwd + '/.daemon' Dir::mkdir(daemon_dir) unless File.directory?(daemon_dir) options = { :dir => daemon_dir, :log_output => true, :multiple => false, # only allow one daemon to run at a time :monitor => true } Daemons.run_proc('Mad Chatter', options) do require 'mad_chatter' MadChatter.start end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mad_chatter-0.2.4 | lib/mad_chatter/daemon.rb |
mad_chatter-0.2.3 | lib/mad_chatter/daemon.rb |