#!/bin/bash case "$1" in start) /usr/local/nginx/sbin/nginx ;; stop) killall nginx ;; reconfigure) kill -HUP `cat /usr/local/nginx/logs/nginx.pid` ;; esac