nginx: wrong signal for reload, do binary upgrades

This commit is contained in:
Lucas Hazel 2009-01-29 16:40:39 +11:00
parent 671940671c
commit 4fbd04211f
2 changed files with 21 additions and 18 deletions

View File

@ -5,7 +5,7 @@
name=nginx
version=0.6.35
release=1
release=2
source=(http://sysoev.ru/nginx/$name-$version.tar.gz $name.rc)
build() {

View File

@ -15,10 +15,13 @@ case $1 in
kill -QUIT `cat /var/run/nginx.pid`
;;
reload)
kill -HUP `cat /var/run/nginx.pid`
;;
upgrade)
kill -USR2 `cat /var/run/nginx.pid`
;;
*)
echo "usage: nginx [start|stop|reload]"
echo "usage: nginx [start|stop|reload|upgrade]"
;;
esac