sessions2trash cron

57 views
Skip to first unread message

Jayadevan M

unread,
Dec 17, 2013, 1:28:55 AM12/17/13
to
I have 
         [uwsgi-cron] command "python /var/www/web2py/web2py.py -Q -S welcome -M -R scripts/sessions2trash.py -A -o" registered as cron task
in my uwsgi log (because the cron is mentioned in the config file for uwsgi).
Under which user/how can I really see this cron entry?

Niphlod

unread,
Dec 17, 2013, 2:56:02 PM12/17/13
to web...@googlegroups.com
here https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh#L145
uwsgi takes care of it with the default setup, with the added bonus that the user running uwsgi has all the necessary permission to run that script.

Jayadevan M

unread,
Dec 17, 2013, 9:24:35 PM12/17/13
to web...@googlegroups.com
Thanks. For each app, I will add a line to web2py.ini like
python /var/www/web2py/web2py.py -Q -S myapp1 -M -R scripts/sessions2trash.py -A -o
python /var/www/web2py/web2py.py -Q -S myapp2 -M -R scripts/sessions2trash.py -A -o
?


--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/3Sqo8gQ7ya8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Niphlod

unread,
Dec 18, 2013, 3:52:44 AM12/18/13
to web...@googlegroups.com
yep
Reply all
Reply to author
Forward
0 new messages