forked from ports/contrib
23 lines
319 B
Plaintext
23 lines
319 B
Plaintext
#
|
|
# /etc/rc.d/nginx: start, stop or retart nginx server
|
|
#
|
|
|
|
case $1 in
|
|
start)
|
|
if [ -s /var/run/nginx.pid -a ! -z "`pgrep nginx`" ]
|
|
then
|
|
echo "nginx is already running"
|
|
exit 1
|
|
fi
|
|
/usr/sbin/nginx
|
|
;;
|
|
stop)
|
|
/usr/sbin/nginx -s quit
|
|
;;
|
|
*)
|
|
echo "usage: nginx [start|stop]"
|
|
;;
|
|
esac
|
|
|
|
# End of file
|