Source

woocode / sa-auto / sh / nginx.sh

#!/bin/sh

SH_DIR=$(dirname $(which $0))
. $SH_DIR/app_env.sh


if [ "$1" = "stop" ] ; then

   killall -9 nginx

elif [ "$1" = "restart" ]; then

   killall -HUP nginx

elif [ "$1" = "start" ]; then

   $APP_SVR/nginx/sbin/nginx

else
	echo "usage: $0 start|stop|restart"
fi