From: "Iñaki Baz Castillo" Date: 2009-06-14T02:37:18+09:00 Subject: How to daemonize a Ruby program Hi, I've coded a Ruby server listening in TCP and UDP. For TCP I use GServer and for UDP an own code. I need to daemonize it to get it working in background so I can manage the service using a Debian init script, but I have no idea of how to do it. Basically I run the following: tcp_server = GServer.new(bind_port, bind_ip) tcp_server.start tcp_server.join So, how could I get the programm running in background? This is, I must be able tu run the program in a terminal: ./my_server.rb and leave the same terminal free to use it while the daemon is running. Thanks a lot for any suggestion. -- Iñaki Baz Castillo