start, stop and reload nginx by monitoring it's PID file
useful for triggering reload of nginx configuration files
based on the monitoring bits of https://github.com/DamonOehlman/ngineer
there are integration tests available, given the following:
pid file in '/var/run/nginx.pid'npm install
sudo npm test