Files
php7/php-systemd-unit.patch
Petr Gajdos 3de36d26f1 Accepting request 750284 from home:adkorte:branches:devel:languages:php
The --enable-mysqlnd configure option must be passed to all build variants, otherwise the mysqli and pdo-mysql extensions will only work in CLI php. Drop two additions from the php-systemd-unit.patch as these make restarting the php-fpm.service very slow. Add --with-fpm-user and --with-fpm-group to fpm target to allow smooth migration from Apache mod_php to FPM.

OBS-URL: https://build.opensuse.org/request/show/750284
OBS-URL: https://build.opensuse.org/package/show/devel:languages:php/php7?expand=0&rev=227
2019-11-25 08:42:08 +00:00

17 lines
657 B
Diff

Index: php-7.4.0RC6/sapi/fpm/php-fpm.service.in
===================================================================
--- php-7.4.0RC6.orig/sapi/fpm/php-fpm.service.in 2019-11-19 11:33:35.195960137 +0100
+++ php-7.4.0RC6/sapi/fpm/php-fpm.service.in 2019-11-19 11:35:45.588688471 +0100
@@ -5,10 +5,10 @@
[Unit]
Description=The PHP FastCGI Process Manager
After=network.target
+Before=apache2.service nginx.service lighttpd.service
[Service]
Type=@php_fpm_systemd@
-PIDFile=@EXPANDED_LOCALSTATEDIR@/run/php-fpm.pid
ExecStart=@EXPANDED_SBINDIR@/php-fpm --nodaemonize --fpm-config @EXPANDED_SYSCONFDIR@/php-fpm.conf
ExecReload=/bin/kill -USR2 $MAINPID