Skip to content

Instantly share code, notes, and snippets.

@rbe
Created October 2, 2012 11:21
Show Gist options
  • Save rbe/3818290 to your computer and use it in GitHub Desktop.
Save rbe/3818290 to your computer and use it in GitHub Desktop.
php_fpm_flags patch
--- php-fpm.orig 2012-10-02 12:53:02.000000000 +0200
+++ php-fpm 2012-10-02 13:16:40.000000000 +0200
@@ -10,6 +10,8 @@
#
# Add the following line to /etc/rc.conf to enable php-fpm:
# php_fpm_enable="YES"
+# You can also supply flags to start php-fpm:
+# php_fpm_flags="-c /usr/local/etc/php.ini"
#
. /etc/rc.subr
@@ -20,10 +22,12 @@
load_rc_config "$name"
: ${php_fpm_enable="NO"}
+: ${php_fpm_flags=""}
extra_commands="reload logrotate"
command="/usr/local/sbin/php-fpm"
+command_args="${php_fpm_flags}"
pidfile="/var/run/php-fpm.pid"
sig_stop="QUIT"
sig_reload="USR2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment