JasonGiedymin/nginx-init-ubuntu — pull request #8 by nvartolomei (2014-01-16 08:36:02+00:00)
Title: Error return code if nginx fails to start

Because of this:

```
λ deploy at reploy in /etc/init.d
→ sudo service nginx start
* Starting Nginx Server... nginx: [emerg] mkdir() "/usr/local/var/run/nginx/client_body_temp" failed (2: No such file or directory)
[ OK ]
λ deploy at reploy in /etc/init.d
→ echo $?
0
```

Also various orchestration tools, such as Ansible for example, that relies on exit codes shows that nginx started successful, although this is not true.