If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!

  • 0
    select  10 years ago
    Our setup is that we have a server running in front (apache or lighttpd) and a web2py server instance in the back. Since we use some libraries that are sometime unstable they also crash the web2py server from time to time. To automatically start the web2py server again we use this cron script. If you would have web2py running with WSGI in e.g. lighttpd the script could also be rewritten to start your lighttpd server on crashes.

Commented on:

if you want to let your web2py server run all the time this script test if web2py runs every 3 minutes and starts it if it is down

Hosting graciously provided by:
Python Anywhere