if apache manages start and stop of web2py threads you cannot use cron
inside apache. This does not mean you cannot use web2py cron. You just
have to start a web2py instance manually:

nohup web2py.py -i 127.0.0.1 -p 8000 &

On Feb 16, 9:19 am, LightOfMooN <vladsale...@yandex.ru> wrote:
> Hello
> I have web2py installed with setup-web2py-ubuntu.sh
> It runs with Apache mod_wsgi.
>
> Crontab of myapp is:
> */1  *  *  *  *  root  *cron/test
>
> And function:
> def test():
>     shop = db(db.shops.id==8).select().first()
>     new = shop.daystodelete + 1
>     shop.update_record(daystodelete=new)
>     db.commit()
>     return 'done'
> test()
>
> manually function works fine. But not with cron. Seems it's not
> working.
> Any ideas? Thx

Reply via email to