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