diff options
Diffstat (limited to 'recipes-devtools/php/files/init.d.php-rpm.patch')
-rw-r--r-- | recipes-devtools/php/files/init.d.php-rpm.patch | 36 |
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 |