Ruby background service

Posted by FancyDancy on Stack Overflow See other posts from Stack Overflow or by FancyDancy
Published on 2010-05-24T22:29:02Z Indexed on 2010/05/25 6:51 UTC
Read the original article Hit count: 257

Filed under:
|
|
|
|

I have a TCPclient written on Ruby. I want to use it in background. Currently it has a loop:

loop do
end

So i can run a client, and it works forever.

Is there a way to run in as a service, and write a pid to file, then i'll able to kill that process by pid?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about service