check PID on start

If the PID file is not writable, then the proxy will run as a ghost
and cannot be shut down