<div dir="ltr"><div><div><div><div><div>Hi,<br></div>I'm running Wheezy and am working on hosting a site using php-fpm. The problem is that if something goes wrong during reload fpm immediately dies and nothing is reported to the user. Here is what I do and what is written in the log:<br>

<br>┌[cydadmin][web][ssh]:~ <br>└$ sudo service php5-fpm reload<br>[ ok ] Reloading PHP5 FastCGI Process Manager: php5-fpm.<br>┌[cydadmin][web][ssh]:~ <br>└$ sudo service php5-fpm status<br>[FAIL] php5-fpm is not running ... failed!<br>

<br>[29-Aug-2014 13:18:21] NOTICE: fpm is running, pid 3910<br>[29-Aug-2014 13:18:21] NOTICE: ready to handle connections<br>[29-Aug-2014 13:22:16] NOTICE: Reloading in progress ...<br>[29-Aug-2014 13:22:16] NOTICE: reloading: execvp("/usr/sbin/php5-fpm", {"/usr/sbin/php5-fpm", "--fpm-c\<br>

onfig", "/etc/php5/fpm/php-fpm.conf"})<br>[29-Aug-2014 13:22:16] ERROR: [/etc/php5/fpm/pool.d/y-lan.se.conf:2] unknown entry 'error.log'<br>[29-Aug-2014 13:22:16] ERROR: Unable to include /etc/php5/fpm/pool.d/y-lan.se.conf from /etc/php5/fpm/\<br>

php-fpm.conf at line 2<br>[29-Aug-2014 13:22:16] ERROR: failed to load configuration file '/etc/php5/fpm/php-fpm.conf'<br>[29-Aug-2014 13:22:16] ERROR: FPM initialization failed<br><br></div>The problem seems to be that:<br>

<br></div>1. Reload doesn't sanity check the config file before loading it.<br></div>2. The init script doesn't report failure on crash.<br></div>3. The init script even reports success if php-fpm isn't running.<br>

<br>┌[cydadmin][web][ssh]:~ <br>└$ sudo service php5-fpm status<br>[FAIL] php5-fpm is not running ... failed!<br>┌[cydadmin][web][ssh]:~ <br>└$ sudo service php5-fpm reload<br>[ ok ] Reloading PHP5 FastCGI Process Manager: php5-fpm.<br>

</div>