Hey Bradley,

On Jul 28, 2006, at 4:57 PM, Bradley Taylor wrote:
>
> Would be nice if mongrel_cluster_ctl had some sort of "status" switch
> to see if the servers are actually running and what their pids are.

I'll look into this.

I made a simple patch that displays the pids and port numbers of all
the running mongrel clusters based on the pid files that exist.  Not
sure if that's the best way to do that, but it gets the job done.

I use mongrel on a (FreeBSD) server at my work and I needed a way of
automating the clusters and checking on their existance.  It should
work on both Linux and FreeBSD or anything that uses pid files (ie.
not Windows).

I also updated the rc.d script to include the status ability.

Hope this helps.

Andrew Bennett
[EMAIL PROTECTED]

Attachment: mongrel_cluster-0.2.0+status.patch.diff
Description: Binary data

Attachment: mongrel_cluster.sh
Description: Bourne shell script

_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to