How to run the paste server process as a daemon?

215 views
Skip to first unread message

Raviteja Dodda

unread,
Oct 24, 2011, 4:02:48 PM10/24/11
to pylons...@googlegroups.com
Hi,

How to run the paste server process as a daemon?

-Ravi

Joe Dallago

unread,
Oct 24, 2011, 4:04:38 PM10/24/11
to pylons...@googlegroups.com
paste serve development.ini --daemon.  You can also see its other options by typing paster serve development.ini --help.

--
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...@googlegroups.com.
To unsubscribe from this group, send email to pylons-devel...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.

Joe Dallago

unread,
Oct 24, 2011, 4:04:54 PM10/24/11
to pylons...@googlegroups.com
paster* serve

ravi teja

unread,
Oct 24, 2011, 4:06:27 PM10/24/11
to pylons...@googlegroups.com
I used to do like this:

paster serve development.ini --reload &

I wanted to know if there is another way

Michael Merickel

unread,
Oct 24, 2011, 4:18:46 PM10/24/11
to pylons...@googlegroups.com
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

Joe Dallago

unread,
Oct 24, 2011, 4:21:28 PM10/24/11
to pylons...@googlegroups.com
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.

Joe Dallago

unread,
Oct 24, 2011, 4:22:59 PM10/24/11
to pylons...@googlegroups.com
Yah supervisor is a better option for production.

ravi teja

unread,
Oct 24, 2011, 4:23:42 PM10/24/11
to pylons...@googlegroups.com
Thanks for the replies guys. I got the point.

Reply all
Reply to author
Forward
0 new messages