summaryrefslogtreecommitdiff
path: root/recipes-devtools/php/files/init.d.php-rpm.patch
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-08-14 17:51:05 -0500
committerJohn Klug <john.klug@multitech.com>2017-08-14 17:51:05 -0500
commit8057eeb68f84852e801d8d8dd6d2e3402947060b (patch)
tree731e7279bd0834fb5b54f15608686f74cb8c1228 /recipes-devtools/php/files/init.d.php-rpm.patch
parentf470ab17fe59bd2242730daa04c6928c50b27a4e (diff)
downloadmeta-mlinux-8057eeb68f84852e801d8d8dd6d2e3402947060b.tar.gz
meta-mlinux-8057eeb68f84852e801d8d8dd6d2e3402947060b.tar.bz2
meta-mlinux-8057eeb68f84852e801d8d8dd6d2e3402947060b.zip
Fix up the php-fpm configuration
Diffstat (limited to 'recipes-devtools/php/files/init.d.php-rpm.patch')
-rw-r--r--recipes-devtools/php/files/init.d.php-rpm.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-devtools/php/files/init.d.php-rpm.patch b/recipes-devtools/php/files/init.d.php-rpm.patch
new file mode 100644
index 0000000..312f5d7
--- /dev/null
+++ b/recipes-devtools/php/files/init.d.php-rpm.patch
@@ -0,0 +1,36 @@
+diff -Naru old/sapi/fpm/init.d.php-fpm.in new/sapi/fpm/init.d.php-fpm.in
+--- old/sapi/fpm/init.d.php-fpm.in 2017-08-14 16:30:30.551436717 -0500
++++ new/sapi/fpm/init.d.php-fpm.in 2017-08-14 16:51:21.963399670 -0500
+@@ -10,12 +10,13 @@
+ # Description: starts the PHP FastCGI Process Manager daemon
+ ### END INIT INFO
+
+-prefix=@prefix@
+-exec_prefix=@exec_prefix@
+-
+-php_fpm_BIN=@sbindir@/php-fpm
+-php_fpm_CONF=@sysconfdir@/php-fpm.conf
+-php_fpm_PID=@localstatedir@/run/php-fpm.pid
++NAME="php-fpm"
++prefix=/usr
++exec_prefix=/usr
++
++php_fpm_BIN=/usr/sbin/php-fpm
++php_fpm_CONF=/etc/php-fpm.conf
++php_fpm_PID=/var/run/php-fpm.pid
+
+
+ php_opts="--fpm-config $php_fpm_CONF --pid $php_fpm_PID"
+@@ -52,6 +53,12 @@
+
+ case "$1" in
+ start)
++ [[ -f /etc/default/$NAME ]] && . /etc/default/"$NAME"
++ if [[ $ENABLED != "yes" ]]; then
++ echo "$NAME: disabled in /etc/default"
++ exit
++ fi
++
+ echo -n "Starting php-fpm "
+
+ $php_fpm_BIN --daemonize $php_opts