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 name=nginx
version=0.6.35 version=0.6.35
release=1 release=2
source=(http://sysoev.ru/nginx/$name-$version.tar.gz $name.rc) source=(http://sysoev.ru/nginx/$name-$version.tar.gz $name.rc)
build() { build() {

View File

@ -3,23 +3,26 @@
# #
case $1 in case $1 in
start) start)
if [ -s /var/run/nginx.pid ] if [ -s /var/run/nginx.pid ]
then then
echo "nginx is already running" echo "nginx is already running"
exit 1 exit 1
fi fi
/usr/sbin/nginx /usr/sbin/nginx
;; ;;
stop) stop)
kill -QUIT `cat /var/run/nginx.pid` kill -QUIT `cat /var/run/nginx.pid`
;; ;;
reload) reload)
kill -USR2 `cat /var/run/nginx.pid` kill -HUP `cat /var/run/nginx.pid`
;; ;;
*) upgrade)
echo "usage: nginx [start|stop|reload]" kill -USR2 `cat /var/run/nginx.pid`
;; ;;
*)
echo "usage: nginx [start|stop|reload|upgrade]"
;;
esac esac
# End of file # End of file