Faye server with rails 3.1

I want to use Faye on production server. how can I start faye server automatically or as a daemon process.

Because when I start faye server using SSH it shutdown as i close ssh connection. Please guide me its really urgent.

I can run faye server on local but how I can rub this on live site.

You may get a better response on the Faye mailing list:

    http://groups.google.com/group/faye-users

But in general if you want to run a process automatically as a daemon, you want to add it to your system's init scripts, and/or put it under the control of some kind of monitoring system (e.g. Monit).

As a temporary quick-and-dirty fix, you can keep a shell session on the server active by running it inside a terminal multiplexer like GNU Screen or tmux. This is not a long-term solution, though.

Chris