@@ -0,0 +1,20 @@
+--- php-7.0.16/sapi/fpm/php-fpm.service.in.orig 2017-02-14 14:51:08.000000000 +0100
++++ php-7.0.16/sapi/fpm/php-fpm.service.in 2017-02-21 14:27:59.369657594 +0100
+@@ -1,12 +1,16 @@
+ [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
++ExecStart=/usr/sbin/php-fpm --nodaemonize --fpm-config @EXPANDED_SYSCONFDIR@/php-fpm.conf
+ ExecReload=/bin/kill -USR2 $MAINPID
++ExecStop=/bin/kill -QUIT $MAINPID
++PrivateTmp=true
++KillMode=mixed
+
+ [Install]
+ WantedBy=multi-user.target
|