ports/opt (3.1): php-fpm: update to 5.5.22, improved rc script
commit 405c1009fc4b6c703fdd8b6460736c1783270082 Author: Juergen Daubert <jue@jue.li> Date: Fri Feb 20 12:07:21 2015 +0100 php-fpm: update to 5.5.22, improved rc script diff --git a/php-fpm/.md5sum b/php-fpm/.md5sum index ba3ad89..b562c90 100644 --- a/php-fpm/.md5sum +++ b/php-fpm/.md5sum @@ -1,2 +1,2 @@ -79664ce44f7c93f355a25a3fe3dcc91b php-5.5.21.tar.xz -93be638b655e225b198d2a2ae69ca2fb php-fpm +fb1704131d495f5b3e6ab3b087a8dbe6 php-5.5.22.tar.xz +8e28a716c6d3a1345449521d659c5ec6 php-fpm diff --git a/php-fpm/Pkgfile b/php-fpm/Pkgfile index 3323c4d..c25c07f 100644 --- a/php-fpm/Pkgfile +++ b/php-fpm/Pkgfile @@ -4,7 +4,7 @@ # Depends on: xz libpcre libxml2 name=php-fpm -version=5.5.21 +version=5.5.22 release=1 source=(http://php.net/distributions/php-$version.tar.xz php-fpm) diff --git a/php-fpm/php-fpm b/php-fpm/php-fpm index d5f8a1f..ea165de 100644 --- a/php-fpm/php-fpm +++ b/php-fpm/php-fpm @@ -3,20 +3,35 @@ # /etc/rc.d/php-fpm: start/stop FastCGI Process Manager # +SSD=/sbin/start-stop-daemon +PROG=/usr/sbin/php-fpm +PID=/var/run/php-fpm.pid + case $1 in start) - /usr/sbin/php-fpm + $SSD --start --pidfile $PID --exec $PROG ;; stop) - killall -q /usr/sbin/php-fpm + $SSD --stop --retry 10 --pidfile $PID ;; restart) $0 stop - sleep 2 $0 start ;; +reload) + $SSD --stop --signal USR2 --pidfile $PID + ;; +status) + $SSD --status --pidfile $PID + case $? in + 0) echo "$PROG is running" ;; + 1) echo "$PROG is not running but the pid file $PID exists" ;; + 3) echo "$PROG is not running" ;; + 4) echo "Unable to determine the program status" ;; + esac + ;; *) - echo "usage: $0 [start|stop|restart]" + echo "usage: $0 [start|stop|restart|reload|status]" ;; esac
participants (1)
-
crux@crux.nu