Re: How to run the paste server process as a daemon?

2011-10-24 Thread ravi teja
Thanks for the replies guys. I got the point.


On 25-Oct-2011, at 1:51 AM, Joe Dallago wrote:

> Yah, the correct way to do that is 'paster serve development.ini --reload 
> --daemon'.  If your developing, you probably don't want to run it as a 
> daemon, as you won't be able to see the output of the server, and if you are 
> running it in production, you probably wouldn't want the server to reload 
> each time the code changes(b/c realistically it shouldn't).  So I would 
> recommend using each of those two flags separate of one another.
> 
> On Mon, Oct 24, 2011 at 3:06 PM, ravi teja  wrote:
> I used to do like this:
> 
> paster serve development.ini --reload &
> 
> I wanted to know if there is another way
> 
> 
> On 25-Oct-2011, at 1:34 AM, Joe Dallago wrote:
> 
>> paster* serve
>> 
>> On Mon, Oct 24, 2011 at 3:04 PM, Joe Dallago  wrote:
>> paste serve development.ini --daemon.  You can also see its other options by 
>> typing paster serve development.ini --help.
>> 
>> 
>> On Mon, Oct 24, 2011 at 3:02 PM, Raviteja Dodda  
>> wrote:
>> Hi,
>> 
>> How to run the paste server process as a daemon?
>> 
>> -Ravi
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "pylons-devel" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/pylons-devel/-/Zb3qdkNEwygJ.
>> To post to this group, send email to pylons-devel@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> pylons-devel+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/pylons-devel?hl=en.
>> 
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "pylons-devel" group.
>> To post to this group, send email to pylons-devel@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> pylons-devel+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/pylons-devel?hl=en.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "pylons-devel" group.
> To post to this group, send email to pylons-devel@googlegroups.com.
> To unsubscribe from this group, send email to 
> pylons-devel+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/pylons-devel?hl=en.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "pylons-devel" group.
> To post to this group, send email to pylons-devel@googlegroups.com.
> To unsubscribe from this group, send email to 
> pylons-devel+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/pylons-devel?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.



Re: How to run the paste server process as a daemon?

2011-10-24 Thread Joe Dallago
Yah supervisor is a better option for production.

On Mon, Oct 24, 2011 at 3:21 PM, Joe Dallago  wrote:

> Yah, the correct way to do that is 'paster serve development.ini --reload
> --daemon'.  If your developing, you probably don't want to run it as a
> daemon, as you won't be able to see the output of the server, and if you are
> running it in production, you probably wouldn't want the server to reload
> each time the code changes(b/c realistically it shouldn't).  So I would
> recommend using each of those two flags separate of one another.
>
>
> On Mon, Oct 24, 2011 at 3:06 PM, ravi teja  wrote:
>
>>  I used to do like this:
>>
>> paster serve development.ini --reload &
>>
>> I wanted to know if there is another way
>>
>>
>> On 25-Oct-2011, at 1:34 AM, Joe Dallago wrote:
>>
>> paster* serve
>>
>> On Mon, Oct 24, 2011 at 3:04 PM, Joe Dallago wrote:
>>
>>> paste serve development.ini --daemon.  You can also see its other options
>>> by typing paster serve development.ini --help.
>>>
>>>
>>> On Mon, Oct 24, 2011 at 3:02 PM, Raviteja Dodda 
>>> wrote:
>>>
 Hi,

 How to run the paste server process as a daemon?

 -Ravi

  --
 You received this message because you are subscribed to the Google
 Groups "pylons-devel" group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/pylons-devel/-/Zb3qdkNEwygJ.
 To post to this group, send email to pylons-devel@googlegroups.com.
 To unsubscribe from this group, send email to
 pylons-devel+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/pylons-devel?hl=en.

>>>
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "pylons-devel" group.
>> To post to this group, send email to pylons-devel@googlegroups.com.
>> To unsubscribe from this group, send email to
>> pylons-devel+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/pylons-devel?hl=en.
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "pylons-devel" group.
>> To post to this group, send email to pylons-devel@googlegroups.com.
>> To unsubscribe from this group, send email to
>> pylons-devel+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/pylons-devel?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.



Re: How to run the paste server process as a daemon?

2011-10-24 Thread Joe Dallago
Yah, the correct way to do that is 'paster serve development.ini --reload
--daemon'.  If your developing, you probably don't want to run it as a
daemon, as you won't be able to see the output of the server, and if you are
running it in production, you probably wouldn't want the server to reload
each time the code changes(b/c realistically it shouldn't).  So I would
recommend using each of those two flags separate of one another.

On Mon, Oct 24, 2011 at 3:06 PM, ravi teja  wrote:

> I used to do like this:
>
> paster serve development.ini --reload &
>
> I wanted to know if there is another way
>
>
> On 25-Oct-2011, at 1:34 AM, Joe Dallago wrote:
>
> paster* serve
>
> On Mon, Oct 24, 2011 at 3:04 PM, Joe Dallago  wrote:
>
>> paste serve development.ini --daemon.  You can also see its other options
>> by typing paster serve development.ini --help.
>>
>>
>> On Mon, Oct 24, 2011 at 3:02 PM, Raviteja Dodda 
>> wrote:
>>
>>> Hi,
>>>
>>> How to run the paste server process as a daemon?
>>>
>>> -Ravi
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "pylons-devel" group.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/pylons-devel/-/Zb3qdkNEwygJ.
>>> To post to this group, send email to pylons-devel@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> pylons-devel+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/pylons-devel?hl=en.
>>>
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-devel" group.
> To post to this group, send email to pylons-devel@googlegroups.com.
> To unsubscribe from this group, send email to
> pylons-devel+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pylons-devel?hl=en.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "pylons-devel" group.
> To post to this group, send email to pylons-devel@googlegroups.com.
> To unsubscribe from this group, send email to
> pylons-devel+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pylons-devel?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.



Re: How to run the paste server process as a daemon?

2011-10-24 Thread Michael Merickel
If you're using paster in production, it's usually smart to launch it via
supervisor so that it can restart the app if it crashes and generally
provide a better way to monitor the process. An example of doing this is in
the cookbook.

http://docs.pylonsproject.org/projects/pyramid_cookbook/dev/deployment/nginx.html#step-4-managing-your-paster-processes-with-supervisord-optional

If you just want to launch paster in daemon mode, do what Joe said and
"paster serve --daemon development.ini".


-- 

Michael

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.



Re: How to run the paste server process as a daemon?

2011-10-24 Thread ravi teja
I used to do like this:

paster serve development.ini --reload &

I wanted to know if there is another way


On 25-Oct-2011, at 1:34 AM, Joe Dallago wrote:

> paster* serve
> 
> On Mon, Oct 24, 2011 at 3:04 PM, Joe Dallago  wrote:
> paste serve development.ini --daemon.  You can also see its other options by 
> typing paster serve development.ini --help.
> 
> 
> On Mon, Oct 24, 2011 at 3:02 PM, Raviteja Dodda  
> wrote:
> Hi,
> 
> How to run the paste server process as a daemon?
> 
> -Ravi
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "pylons-devel" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/pylons-devel/-/Zb3qdkNEwygJ.
> To post to this group, send email to pylons-devel@googlegroups.com.
> To unsubscribe from this group, send email to 
> pylons-devel+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/pylons-devel?hl=en.
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "pylons-devel" group.
> To post to this group, send email to pylons-devel@googlegroups.com.
> To unsubscribe from this group, send email to 
> pylons-devel+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/pylons-devel?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.



Re: How to run the paste server process as a daemon?

2011-10-24 Thread Joe Dallago
paster* serve

On Mon, Oct 24, 2011 at 3:04 PM, Joe Dallago  wrote:

> paste serve development.ini --daemon.  You can also see its other options
> by typing paster serve development.ini --help.
>
>
> On Mon, Oct 24, 2011 at 3:02 PM, Raviteja Dodda wrote:
>
>> Hi,
>>
>> How to run the paste server process as a daemon?
>>
>> -Ravi
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "pylons-devel" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/pylons-devel/-/Zb3qdkNEwygJ.
>> To post to this group, send email to pylons-devel@googlegroups.com.
>> To unsubscribe from this group, send email to
>> pylons-devel+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/pylons-devel?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.



Re: How to run the paste server process as a daemon?

2011-10-24 Thread Joe Dallago
paste serve development.ini --daemon.  You can also see its other options by
typing paster serve development.ini --help.

On Mon, Oct 24, 2011 at 3:02 PM, Raviteja Dodda wrote:

> Hi,
>
> How to run the paste server process as a daemon?
>
> -Ravi
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-devel" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pylons-devel/-/Zb3qdkNEwygJ.
> To post to this group, send email to pylons-devel@googlegroups.com.
> To unsubscribe from this group, send email to
> pylons-devel+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pylons-devel?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.



How to run the paste server process as a daemon?

2011-10-24 Thread Raviteja Dodda
Hi,

How to run the paste server process as a daemon?

-Ravi

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-devel/-/Zb3qdkNEwygJ.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.