ports/165005: [update] lang/php5 support php-fpm runtime flags
Jaime Bozza
jbozza at mindsites.com
Sat Feb 11 22:20:10 UTC 2012
>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 at 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:
More information about the freebsd-ports-bugs
mailing list