LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File php5-systemd-unit.patch of Package php56-zts (Project home:zhyravskiy_o)

Index: php-5.6.22/sapi/fpm/php-fpm.service.in
===================================================================
--- php-5.6.22.orig/sapi/fpm/php-fpm.service.in	2016-05-26 03:08:57.000000000 +0200
+++ php-5.6.22/sapi/fpm/php-fpm.service.in	2016-06-20 13:39:39.790849850 +0200
@@ -1,12 +1,15 @@
 [Unit]
 Description=The PHP FastCGI Process Manager
-After=syslog.target network.target
+After=network.target
+Before=apache2.service nginx.service lighttpd.service
 
 [Service]
 Type=@php_fpm_systemd@
-PIDFile=@localstatedir@/run/php-fpm.pid
-ExecStart=@sbindir@/php-fpm --nodaemonize --fpm-config @sysconfdir@/php-fpm.conf
+ExecStart=/usr/sbin/php-fpm --nodaemonize --fpm-config @sysconfdir@/php-fpm.conf
 ExecReload=/bin/kill -USR2 $MAINPID
+ExecStop=/bin/kill -QUIT $MAINPID
+PrivateTmp=true
+KillMode=mixed
 
 [Install]
 WantedBy=multi-user.target