5 NGINX_CONFIG
="/etc/nginx/conf/nginx.conf"
11 function check_config
{
12 stat_busy
"Checking configuration"
13 /usr
/sbin
/nginx
-t -c "$NGINX_CONFIG"
24 stat_busy
"Starting Nginx"
25 if [ -s /var
/run
/nginx.pid
]; then
28 stat_busy
"Nginx is already running"
31 /usr
/sbin
/nginx
-c "$NGINX_CONFIG" &>/dev
/null
40 stat_busy
"Stopping Nginx"
41 kill -QUIT `cat /var/run/nginx.pid` &>/dev
/null
56 if [ -s /var
/run
/nginx.pid
]; then
57 status
"Reloading Nginx Configuration" kill -HUP `cat /var/run/nginx.pid`
64 echo "usage: $0 {start|stop|restart|reload|check}"