blob: 0673e7c4fd0c926ee1404c48841bc259989a587a (
plain)
1 #
2 # /etc/rc.d/nginx: start, stop or retart nginx server
3 #
4
5 case $1 in
6 start)
7 if [ -s /var/run/nginx.pid -a ! -z "`pgrep nginx`" ]
8 then
9 echo "nginx is already running"
10 exit 1
11 fi
12 /usr/sbin/nginx
13 ;;
14 stop)
15 /usr/sbin/nginx -s quit
16 ;;
17 *)
18 echo "usage: nginx [start|stop]"
19 ;;
20 esac
21
22 # End of file
|