gplessis/dotdeb-php5 — pull request #41 by salaman (2013-08-17 00:59:57+00:00)
Title: Fix-up php5-fpm configuration tests in init scripts

Currently, the init.d scripts look for the following error messages in the output of `php5-fpm -t`:

```
Aug 16 20:29:13.803669 [ERROR] failed to load configuration file '/etc/php5/fpm/php-fpm.conf'
```

But the format is the following:

```
[16-Aug-2013 20:29:13] ERROR: failed to load configuration file '/etc/php5/fpm/php-fpm.conf'
```

This causes the init.d script to ignore errors and not report them to the user.

Also, the Upstart configuration file for PHP 5.5 is generally broken, because php5-fpm forks itself, and this needs to be specified in the Upstart script with `expect fork`. In addition, if there are no errors found, grep will return 1 (no match), which will cause Upstart to stop execution.

The erroneous `grep`s also exist in your PHP 5.4 branches, but I figure it is up to your discretion to fix those.

Thank you!