Running the scheduler from command line with no problem:
python /home/user/web2py/web2py.py -K myapp -D 0
Runs for ever and execute tasks
However if I run it as a demon according to the recipe in the book, it
actually restart the process 8 times and stops:
$ sudo status web2py-scheduler
web2py-scheduler stop/waiting
I can see it with ps -ax, it gets new process id and after 8 process ids it
stops/give up.
In ps it looks like this:
9027 ? Ss 0:00 sudo -u user python /home/user/web2py/web2py.py
-K myapp
9029 ? S 0:00 python /home/user/web2py/web2py.py -K myapp
Both process ids are changing
I managed to log the commandline with -D 0 to the console but can't use it
for anything because it works fine
I also get a file: logs/web2py.log when I run the demon but it is empty.
My logging.conf is:
[logger_root]
level=DEBUG
handlers=consoleHandler,rotatingFileHandler
[handler_rotatingFileHandler]
class=handlers.RotatingFileHandler
level=DEBUG
formatter=simpleFormatter
args=("logs/web2py.log", "a", 1000000, 5)
--
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.