From: Rogue Amateur Date: 2006-07-14T00:09:54+09:00 Subject: Re: Nuby Q: Daemonize (other materials have been read!) unknown wrote: > On Wed, 12 Jul 2006, Rogue Amateur wrote: > >>> >> [snip] > fortytwo :~ > daemon sleep 42 > So, this works. So does another, innocuous script I wrote. I even checked out the daemonize library the other person suggested, and it works too. My pain in the butt actually need it to work as a daemon, however, does not work. What could cause code which works in interactive mode to fail in daemon mode? I'm checking the code now, and I do have "if debug" statements which output to STDOUT. Could that be the problem? I'm adding some blurbs to try to get the stupid thing to tell me, but it seems to die so silently (eg: nothing in syslog, which is where most messages are expected to go), that I can't get enough information. I know it manages to send the "shut down the listener" message, which is a "rescue" action. Hints, suggestions and other comments? RA -- Posted via http://www.ruby-forum.com/.