File php7-systemd-unit.patch of Package php7
Index: php-7.0.16/sapi/fpm/php-fpm.service.in
===================================================================
--- php-7.0.16.orig/sapi/fpm/php-fpm.service.in 2017-02-20 09:45:57.507713434 +0100
+++ php-7.0.16/sapi/fpm/php-fpm.service.in 2017-02-20 09:47:51.793672751 +0100
@@ -1,12 +1,14 @@
[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
+ExecStop=/bin/kill -QUIT $MAINPID
+KillMode=mixed
[Install]
WantedBy=multi-user.target