Well, the title say it all. I have a ruby script I want running as a service (one I can start and stop) on my Linux box. I was able to find how to do it on Windows here
Some readings point to creating daemons or cron tasks.
I just need something simple I can call on my box’s reboot, and can stop/start whenever I please. my script has an internal sleep call, and runs in “eternal loop”
thanks in advance
I’ve actually found a much better way of doing that by using ruby scripts.
This is how I did it:
First of all, I installed daemon
Then I did:
I then create a file called runner.rb, in which I can call my scripts such as:
Daemons is a great gem!