1 2 3 4 5
#!/bin/sh [ -x /etc/init.d/nginx ] && /etc/init.d/nginx running && /etc/init.d/nginx reload exit 0