Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've written this feature addition in order to scratch my own personal itch. When running roundcube under Docker, logs can either go to syslog or file. Since PHP-FPM creates worker pools with restricted permissions, there is no way to symlink a log file to PID 1's STDOUT, so Docker can't log roundcube logs. syslog works, but the whole idea of a docker container is to not have multiple processes running in a container.
This code allows roundcube to write straight to STDOUT, which PHP-FPM can grab when configured with
catch_workers_output = true
and output to the Docker container's STDOUT when php-fpm is run with the-F
and-O
options like so:php-fpm -F -O
.I would love to have this merged into master if you find it of use. I'm currently running this code against the 1.2.4 tag (cbd3562) without issue.
I've tried to put in some documentation where I could find it. If there is another area of documentation that could be buffed up to include this, point me in the right direction and I don't mind adding it to the PR.
Thanks for your consideration!