Merb Init Script

Ezra Zygmuntowicz ez at engineyard.com
Fri Jan 19 14:47:46 EST 2007


	Do you have more then one merb app? I usually don't like to put more  
then one app per init.d script. But if you do need to put them all in  
one init.d script. I think the best way woudl be top place a shell  
script somewhere that can start all yoru merbs appropriately. ANd  
then just have the init.d script call that shell script.

	Or even better yet, use monit instead of init.d scripts ;)

-Ezra


On Jan 19, 2007, at 11:42 AM, Rogelio J. Samour wrote:

> Correct but if I wanted to do a /etc/merb/merb_app1.yml
> and /etc/merb/merb_app2.yml each of which are symbolic links to each
> app's /path/to/dist/conf/merb.yml
>
> Then I could do a /etc/init.d/merb restart and restart all of merb  
> apps.
>
> I guess my question would be: is this a good idea and a possible one?
>
> -rjs-
>
> On Fri, 2007-01-19 at 11:35 -0800, Ezra Zygmuntowicz wrote:
>> On Jan 19, 2007, at 8:04 AM, Rogelio J. Samour wrote:
>>
>>> I'm trying to emulate the mongrel_cluster_ctl but it takes a -c
>>> conf_file option... meaning I can run it from anywhere as long as I
>>> tell it where the conf file is. Merb doesn't have that capability  
>>> does
>>> it? (it has an additional/supplemental config like mup.conf etc)
>>>
>>> Do I have to be under the merb_app root /path/to/merb/app/ to be  
>>> able
>>> to run merb?
>>>
>>> Let me know.
>>>
>>> Thanks,
>>>
>>> rogelio
>>
>>
>> 	No you don't have to be in the merb apps root. You can pass merb
>> root as a command line flag:
>>
>> $ merb -m /path/to/merbapp
>>
>>
>> Cheers-
>> -- Ezra Zygmuntowicz 
>> -- Lead Rails Evangelist
>> -- ez at engineyard.com
>> -- Engine Yard, Serious Rails Hosting
>> -- (866) 518-YARD (9273)
>>
>>
>

-- Ezra Zygmuntowicz 
-- Lead Rails Evangelist
-- ez at engineyard.com
-- Engine Yard, Serious Rails Hosting
-- (866) 518-YARD (9273)




More information about the Merb-devel mailing list