There have been a couple posts to this list from people who couldn't
get cron's @reboot to work. I found the following problems:

1) the crondance function has an argument for "startup", setting it to
True tells it to run the @reboot tasks. However, crondance is never
called with startup=True, so reboot tasks never run.

  Where should this be called? In widget.py?

2) the `task' variable on line 307 sometimes doesn't have a 'min'
field and throws an error.
3) when starting up, I presume we only want to run @reboot tasks.

I fixed 2) and 3) with this patch to cron.py:

-                    if startup and task['min'] == -1:
-                        go = True

+                    if startup:
+                        # On startup, only look for the reboot task
+                        go = 'min' in task and -1 in task['min']

Ideas for how to fix 1?

--

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


Reply via email to