so like this: description "web2py task scheduler" start on (local-filesystems and net-device-up IFACE=eth0) stop on shutdown respawn limit 8 60 # Give up if restart occurs 8 times in 60 seconds. env PYTHONPATH=/home/networkanalytics/git/franz.git/src/lib/ exec sudo -u www-data python /home/www-data/web2py/web2py.py -K netcam_monitor,netcam_monitor,netcam_monitor,netcam_monitor,netcam_monitor_dev,netcam_monitor_dev,netcam_monitor_dev respawn
Does not work On Thursday, August 21, 2014 2:51:06 PM UTC+2, Niphlod wrote: > > upstart has the "env" directive > > env PYTHONPATH=/srv/example/src/example/ > > > > > On Thursday, August 21, 2014 9:44:51 AM UTC+2, Serbitar wrote: >> >> I want to use modules not in the standard PYTHONPATH to be used by tasks >> in the web2py sheduler. >> How do I change the PYTHONPATH for a scheduler configured using the >> web2py-scheduler.conf in init. >> >> I tried exporting the PYTHONPATH there, but it didnt work, >> > On Thursday, August 21, 2014 2:51:06 PM UTC+2, Niphlod wrote: > > upstart has the "env" directive > > env PYTHONPATH=/srv/example/src/example/ > > > > > On Thursday, August 21, 2014 9:44:51 AM UTC+2, Serbitar wrote: >> >> I want to use modules not in the standard PYTHONPATH to be used by tasks >> in the web2py sheduler. >> How do I change the PYTHONPATH for a scheduler configured using the >> web2py-scheduler.conf in init. >> >> I tried exporting the PYTHONPATH there, but it didnt work, >> > -- 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.

