monit is right up to your needs
On 22 фев, 13:43, Tim Conner
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Hi,
> As part of a web application that I am writing I need to have something
> listening for any packets that are received on a particular port and
> then process the packets using some of my Rails models, hence I start
> the script via the ./script/runner command.
> This script always needs to be running, if it exits for any reason, I
> need it to start up again very quickly. Hence, I was considering
> writing a simple script that gets called every minute via a cron job.
> This script will check to see if anything is currently listening on the
> particular port, and if not, call the script/runner command to start the
> listener script again.
> Does this seem like a reasonable way of making sure my listener script
> is always running or is there another/better way?
> Thanks
> T
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---