Re: [web2py] Re: Calling extra script at startup from nginx

2013-09-04 Thread lbd
Hi Niphlod, I had to modify the script by removing: sudo -u This would work if the user I required to run it did not require a sudo password, but I prefer all sudo actions to be authenticated. Thank you again. ed On Tuesday, 3 September 2013 08:01:33 UTC+2, lbd wrote: > > Thank you Niphlod

Re: [web2py] Re: Calling extra script at startup from nginx

2013-09-02 Thread Edward de Jongh
Thank you Niphlod, much appreciated. On Mon, Sep 2, 2013 at 4:04 PM, Niphlod wrote: > description "myqueueprocessor" > 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. > exec sudo -u python /p

Re: [web2py] Re: Calling extra script at startup from nginx

2013-09-02 Thread Niphlod
description "myqueueprocessor" 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. exec sudo -u python /path/to/your/script.py respawn put it in /etc/init/nameofyourservice.conf and it'll start as soon

Re: [web2py] Re: Calling extra script at startup from nginx

2013-09-02 Thread Edward de Jongh
...but how do you really feel about it ;-) Fair enough, will go the upstart route. Thank you On Mon, Sep 2, 2013 at 1:54 PM, Niphlod wrote: > no.no.no.no.no.no. > use services, and separate ones. If you're on ubuntu writing something for > upstart is utterly easy. > > > On Monday, September

[web2py] Re: Calling extra script at startup from nginx

2013-09-02 Thread Niphlod
no.no.no.no.no.no. use services, and separate ones. If you're on ubuntu writing something for upstart is utterly easy. On Monday, September 2, 2013 1:51:49 PM UTC+2, lbd wrote: > > Hi guys, I have my prod deployment of Ubuntu running nginx and in turn > web2py. Also thanks to Niphlod I have all