So, I'm trying to execute a script on every request. I know how that sounds, this is for development environment.
I've added this to my nginx config
local status = os.execute('/opt/nginx/git-magic.sh')
And git-magic.sh contains:
echo hello >> /tmp/git-magic
The issue is:
Whenever I hit any URL, I get the following in the nginx error log:
2012/09/27 15:35:48 [alert] 3241#0: waitpid() failed (10: No child processes)
Any ideas what I might be doing wrong?