#!/bin/sh
. /etc/rc.d/init.d/functions
case $1 in
start)
if [ -f /usr/local/nginx/logs/nginx.pid ]; then
echo_failure
echo "nginx is running"
else
/usr/local/nginx/sbin/nginx
echo_success
echo "nginx is starting"
fi
;;
stop)
if [ -f /usr/local/nginx/logs/nginx.pid ]; then