Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Feb 2012 22:19:53 GMT
From:      Jaime Bozza <jbozza@mindsites.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/165005: [update] lang/php5 support php-fpm runtime flags
Message-ID:  <201202112219.q1BMJrwH074461@red.freebsd.org>
Resent-Message-ID: <201202112220.q1BMK9u4040419@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         165005
>Category:       ports
>Synopsis:       [update] lang/php5 support php-fpm runtime flags
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 11 22:20:09 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jaime Bozza
>Release:        FreeBSD 9-STABLE
>Organization:
>Environment:
FreeBSD hera 9.0-STABLE FreeBSD 9.0-STABLE #0: Fri Feb 10 15:31:26 CST 2012     root@newtest:/usr/obj/usr/src/sys/HERA  amd64
>Description:
Currently, the php-fpm rc script has no ability to support runtime flags, so you can't specify a different php.ini file.  This small patch just adds that feature.  This patch can likely be applied to the lang/php52 port as well.


>How-To-Repeat:

>Fix:
Patch attached.

Patch attached with submission follows:

diff -ur php5.orig/files/php-fpm.in php5/files/php-fpm.in
--- php5.orig/files/php-fpm.in  2012-01-14 02:55:51.000000000 -0600
+++ php5/files/php-fpm.in       2012-02-11 16:12:52.000000000 -0600
@@ -20,10 +20,12 @@
 load_rc_config "$name"
 
 : ${php_fpm_enable="NO"}
+: ${php_fpm_flags=""}
 
 extra_commands="reload logrotate"
 
 command="%%PREFIX%%/sbin/php-fpm"
+command_args="${php_fpm_flags}"
 pidfile="/var/run/php-fpm.pid"
 sig_stop="QUIT"
 sig_reload="USR2"


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202112219.q1BMJrwH074461>