Centos nginx pid

These are the same changes you've merged to master.
We actually are using the centos branch.