I have some Rails apps I use on my Mac to do brutally stupid stuff like track time and activities. They''re always running, but each time I restart, I (duh) have to restart the Mongrels. Well, I know better than that, right? So I dug around in Google to find out how people are getting Mongrels started using Launchd. There are some detailed posts, but none of them seemed to work. My hack-o-the-day was to use crontab, and I''m not certain that''s so bad, but could someone tell me: How do you use Launchd to get Mongrels running? Do you categorize them as Agents or Daemons? Even though these are stable and just work, what if I have to kill one off? Will I confuse anything or can I just use kill as usual (I''m guessing that Mongrel''s stop and restart commands won''t work). Anybody else doing this? Thanks -- View this message in context: http://www.nabble.com/-OT--Starting-Mongrel-on-Mac%3A-Launchd-or-Crontab--tf3482801.html#a9722069 Sent from the RubyOnRails Users mailing list archive at Nabble.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Faisal N Jawdat
2007-Mar-28 21:46 UTC
Re: [OT] Starting Mongrel on Mac: Launchd or Crontab?
launchd is, in theory, the present and future of startup launching on Mac OS X. That said, the old methods still exist, are fairly simple to set up, and are a lot easier to debug. You might try a StartupItem (look in /Library/StartupItems) instead. -faisal --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Philip Hallstrom
2007-Mar-28 22:09 UTC
Re: [OT] Starting Mongrel on Mac: Launchd or Crontab?
> I have some Rails apps I use on my Mac to do brutally stupid stuff like track > time and activities. They''re always running, but each time I restart, I > (duh) have to restart the Mongrels. > > Well, I know better than that, right? So I dug around in Google to find out > how people are getting Mongrels started using Launchd. There are some > detailed posts, but none of them seemed to work. My hack-o-the-day was to > use crontab, and I''m not certain that''s so bad, but could someone tell me: > How do you use Launchd to get Mongrels running? Do you categorize them as > Agents or Daemons? Even though these are stable and just work, what if I > have to kill one off? Will I confuse anything or can I just use kill as > usual (I''m guessing that Mongrel''s stop and restart commands won''t work). > > Anybody else doing this?I don''t have mine always running so I wrote a widget to control them... http://blog.pjkh.com/articles/2006/12/20/mongrel-rails-dashboard-widget Worked great for me until I switched to litespeed. I switched because litespeed will shut down the rails processes if they aren''t used after a period of time freeing up ram for other things... I had a lot of apps, but didn''t use them very often, which sounds a little different than your scenerio so it might not make as much sense. If you try litespeed keep this in mind as well: http://blog.pjkh.com/articles/2007/03/27/litespeed-osx-and-disk-scratching -philip --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---