Here's a solution I wrote. Is there a good place (like the web2py book) to
share this recipe?
Put this in /etc/init/web2py-scheduler.conf:
description "web2py task scheduler"
start on (local-filesystems and net-device-up IFACE=eth0)
stop on shutdown
# Give up if restart occurs 8 times in 60 s
Also:
1. replace "friendbo" with the name of your app.
2. To start/stop the scheduler, use
"sudo start web2py-scheduler"
"sudo stop web2py-scheduler"
"sudo status web2py-scheduler"
...etc.
On Saturday, May 5, 2012 6:47:33 PM UTC-7, Michael Toomim wrote:
>
> Here's a solution I wrote. Is th
Can you send me a patch to the schedule including these instructions in the
docstring?
On Saturday, 5 May 2012 20:54:01 UTC-5, Michael Toomim wrote:
>
> Also:
> 1. replace "friendbo" with the name of your app.
> 2. To start/stop the scheduler, use
> "sudo start web2py-scheduler"
> "sudo stop
Hi Guys,
Although this script works great when upstart is available, when upstart is
not available you can't do it like this. I struggled to find a solution on
here or anywhere online, so I have made an alternative script which will
work on sysvinit (/etc/init.d)
#!/bin/sh
DAEMON=/usr/local/b
post that in web2pyslices.com
Em 05/05/2012 22:47, "Michael Toomim" escreveu:
> Here's a solution I wrote. Is there a good place (like the web2py book) to
> share this recipe?
>
> Put this in /etc/init/web2py-scheduler.conf:
>
> description "web2py task scheduler"
>
> start on (local-filesystems
5 matches
Mail list logo