how to check nginx pid in mac code example Example: nginx: invalid option: "restart" /etc/init.d/nginx restart