Hi, I finally got to know that web2py is best to be used in the startup using system level configuration not as cron. I gave up running it from crontab because it didn't work. I read http://web2py.com/books/default/chapter/29/13#One-step-production-deployment and implemented what is said in three steps as follows: "On Ubuntu, or other Debian-based Linux distribution, edit "web2py.ubuntu.sh" and replace the "/usr/lib/web2py" path with the path of your web2py installation, then type the following shell commands to move the file into the proper folder, register it as a startup service, and start it:
sudo cp scripts/web2py.ubuntu.sh /etc/init.d/web2py sudo update-rc.d web2py defaults sudo /etc/init.d/web2py start I did change the path in the web2py.ubuntu.sh in line DAEMON_DIR=/path/$NAME; I did not touch other things in this file. Then I ran sudo cp scripts/web2py.ubuntu.sh /etc/init.d/web2py and it worked since it moved the file to the right place. Then I ran sudo update-rc.d web2py defaults and got the following: update-rc.d: using dependency based boot sequencing update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match web2py Default-Stop values (S 0 1 6) finally, when I ran sudo /etc/init.d/web2py start, I got the following error: [....] Starting web2py (via systemctl): web2py.serviceJob failed. See system journal and 'systemctl status' for details. failed! Any help is appreciated. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

