Forum: Ruby daemons

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
555c1193071e97926fa67c038244c047?d=identicon&s=25 Phy Prabab (Guest)
on 2008-10-20 17:55
(Received via mailing list)
Hello,

I know people have probably had success with daemons, however, I am
running into issues.  A simple script to daemonize another script fails
w/

> ./daemonize.rb run
/usr/local/jruby-1.1.4/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/daemonize.rb:122:in
`each_object': ObjectSpace is disabled; each_object will only work with
Class, pass +O to enable (RuntimeError)

> cat daemonize.rb
#!/usr/bin/env ruby

require 'rubygems'
require 'daemons'

Daemons.run('scaleMatrix.rb')

# end
>


I am far from an expert on Ruby so I must be dong something wrong.  Any
suggestions?
This topic is locked and can not be replied to.