I have web2py application with controller which is starting some background process like below:
def run_backproc():
subprocess.call('setsid sh dosomething.sh >/dev/null 2>&1 < /dev/null &', shell=True)
return True
The problem is when web2py is running with uwsgi app server, then the request doesn't return True while process is running and the GET request is finished unsuccessful. Without uwsgi it works right. Any idea what can be a problem? Thanks