From: Rogue Amateur Date: 2006-07-12T01:45:41+09:00 Subject: Re: Nuby Q: Daemonize (other materials have been read!) unknown wrote: > On Wed, 12 Jul 2006, Rogue Amateur wrote: > >> [snip again] >> >> I tried it: >> ./daemon.rb ./my_Script.rb >> it dies without comment. >> >> running ./my_Script.rb, however, works as expected. Notions? > > it doesn't die - it starts the script as a daemon. check in top. > Ok, then I'm really confused. Because the script is NOT running. The script in question sends data to and receives data from a socket. I have test code written which sends data to the appropriate socket, and receives back, and prints the result. When I started the listener, then daemonized the script, the listener sat there doing nothing. ps -ef returned nothing (for the script name). When I started the script alone, suddenly the listener has something to do, and the ps -ef returns data. I am sure I did something wrong, I don't doubt it a bit, but... it really doesn't look like the script is running as a daemon. Am I using the wrong checks? Will my sockets suddenly work differently when run as a daemon? I haven't found anything that says that's likely so... I must be confused. Thank you for your quick responses. RA -- Posted via http://www.ruby-forum.com/.