On Thursday, January 16, 2014 5:13:59 AM UTC+1, Jayadevan M wrote:
>
> A couple of questions about web2py scheduler - 
> 1) I have configured web2py using nginx znd uwsgi on CentOS. These 
> services will automatically restart if the server reboots. How can I ensure 
> that web2py scheduler also restarts?
>

Use whatever CentOS offers as a service monitor. Don't know CentOS enough 
to tell what's the best option out there. Alternatively, since its in your 
toolbelt yet, checkout 
http://uwsgi-docs.readthedocs.org/en/latest/AttachingDaemons.html
 

> 2) Is this the right way of starting the scheduler from command line?
> nohup python web2py.py -K myapp &
>
> The right way is just 

web2py.py -K yourapp

depending on what process/service manager you'll use to watch that process, 
you might need to add "sugar" around it, such as the line you posted.  

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to