Bruce Webber ha scritto:
>
> On Aug 21, 9:47 am, jo <[EMAIL PROTECTED]> wrote:
>   
>> Bruce Webber wrote:
>>     
>>> On Aug 21, 5:34 am, Sanjay <[EMAIL PROTECTED]> wrote:
>>>       
>>>>>> ---------------------------------------------------------------
>>>>>> #! /bin/sh
>>>>>> PATH=/bin:/usr/bin:/sbin:/usr/sbin
>>>>>> pidfile=/var/run/tg.pid
>>>>>>             
>>>> Nice script, just to my need, but unfortunately I am using Fedore/
>>>> CentOS; could not find an alternative to start-stop-daemon. Any
>>>> suggestions...
>>>>         
>> I have two processes also using prod.cfg,
>> I supposed it was the line:
>> #autoreload.package="myapp"
>> but it persists to create 2 processes also without such line.
>> Any ideas how to avoid it?
>>
>> jo
>>     
>
> Are you sure you are using prod.cfg? Are you specifying prod.cfg in
> the command that starts your app? For example:
>
> python start-myapp.py prod.cfg
>
> If you leave out the prod.cfg, it will use dev.cfg by default.
>
> Bruce.
>
>   

$ ./start.py prod.cfg &
[1] 1331

$ ps ax|grep prod.cfg
 1331 pts/0    S      0:05 /usr/bin/python2.4 ./start.py prod.cfg
 1348 pts/0    S      0:05 /usr/bin/python2.4 ./start.py prod.cfg
 1351 pts/0    S+     0:00 grep prod.cfg

$ TurboGears requires autoreload.package to be set. It can be an empty
value, which will use CherryPy's default behavior which is to check
every module. Setting an actual package makes the check much faster.

jo

> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to