I
Iñaki Baz Castillo
Hi, I've coded a Ruby server listening in TCP and UDP. For TCP I use GServe=
r=20
and for UDP an own code.
I need to daemonize it to get it working in background so I can manage the=
=20
service using a Debian init script, but I have no idea of how to do it.
Basically I run the following:
tcp_server =3D 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.
=2D-=20
I=C3=B1aki Baz Castillo <[email protected]>
r=20
and for UDP an own code.
I need to daemonize it to get it working in background so I can manage the=
=20
service using a Debian init script, but I have no idea of how to do it.
Basically I run the following:
tcp_server =3D 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.
=2D-=20
I=C3=B1aki Baz Castillo <[email protected]>