dont daemonize php-fpm (fedora >= 18 only)

This commit is contained in:
remi 2012-09-14 08:54:55 +02:00
parent 4f00aa8e17
commit d87a16bf56
4 changed files with 6 additions and 3 deletions

View File

@ -217,6 +217,9 @@ slowlog = /var/log/php-fpm/www-slow.log
;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
;php_flag[display_errors] = off ;php_flag[display_errors] = off
php_admin_value[error_log] = /var/log/php-fpm/www-error.log php_admin_value[error_log] = /var/log/php-fpm/www-error.log
php_admin_value[session.save_path] = /var/lib/php/session
php_admin_flag[log_errors] = on php_admin_flag[log_errors] = on
;php_admin_value[memory_limit] = 128M ;php_admin_value[memory_limit] = 128M
; Set session path to a directory owned by process user
php_admin_value[session.save_path] = /var/lib/php/session

View File

@ -50,7 +50,7 @@ error_log = /var/log/php-fpm/error.log
; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging. ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
; Default Value: yes ; Default Value: yes
;daemonize = yes daemonize = no
;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;
; Pool Definitions ; ; Pool Definitions ;

View File

@ -3,7 +3,6 @@ Description=The PHP FastCGI Process Manager
After=syslog.target network.target After=syslog.target network.target
[Service] [Service]
Type=forking
PIDFile=/run/php-fpm/php-fpm.pid PIDFile=/run/php-fpm/php-fpm.pid
EnvironmentFile=/etc/sysconfig/php-fpm EnvironmentFile=/etc/sysconfig/php-fpm
ExecStart=/usr/sbin/php-fpm ExecStart=/usr/sbin/php-fpm

View File

@ -1282,6 +1282,7 @@ fi
* Fri Sep 14 2012 Remi Collet <remi@fedoraproject.org> 5.4.7-1 * Fri Sep 14 2012 Remi Collet <remi@fedoraproject.org> 5.4.7-1
- update to 5.4.6 - update to 5.4.6
http://www.php.net/releases/5_4_6.php http://www.php.net/releases/5_4_6.php
- php-fpm: don't daemonize
* Mon Aug 20 2012 Remi Collet <remi@fedoraproject.org> 5.4.6-2 * Mon Aug 20 2012 Remi Collet <remi@fedoraproject.org> 5.4.6-2
- enable php-fpm on secondary arch (#849490) - enable php-fpm on secondary arch (#849490)