diff options
author | Jelle Licht <jlicht@fsfe.org> | 2020-05-25 18:48:45 +0200 |
---|---|---|
committer | Guix Patches Tester <> | 2020-05-25 17:50:09 +0100 |
commit | 02183b6770193d932e38522ef77f45563e86d001 (patch) | |
tree | 8d7478f7ae2570e1ff54b0ab54aaeb46aedb213e /gnu | |
parent | f8687cb21e6af7501b1537812bccca574b9d34b3 (diff) | |
download | patches-series-4094.tar patches-series-4094.tar.gz |
services: php-fpm: Add 'php-ini-file' configuration.series-4094
* gnu/services/web.scm: (<php-fpm-configuration>)[php-ini-file]: New record field.
(php-fpm-shepherd-service): Use it.
* doc/guix.texi (Web Services): Document it.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/services/web.scm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gnu/services/web.scm b/gnu/services/web.scm index 9fcfe8a0dc..7cc53ef12f 100644 --- a/gnu/services/web.scm +++ b/gnu/services/web.scm @@ -159,6 +159,7 @@ php-fpm-configuration-timezone php-fpm-configuration-workers-log-file php-fpm-configuration-file + php-fpm-configuration-php-ini-file <php-fpm-dynamic-process-manager-configuration> php-fpm-dynamic-process-manager-configuration @@ -857,6 +858,8 @@ of index files." (version-major (package-version php)) "-fpm.www.log"))) (file php-fpm-configuration-file ;#f | file-like + (default #f)) + (php-ini-file php-fpm-configuration-php-ini-file ;#f | file-like (default #f))) (define-record-type* <php-fpm-dynamic-process-manager-configuration> @@ -963,7 +966,7 @@ of index files." (match-lambda (($ <php-fpm-configuration> php socket user group socket-user socket-group pid-file log-file pm display-errors - timezone workers-log-file file) + timezone workers-log-file file php-ini-file) (list (shepherd-service (provision '(php-fpm)) (documentation "Run the php-fpm daemon.") @@ -974,7 +977,10 @@ of index files." #$(or file (default-php-fpm-config socket user group socket-user socket-group pid-file log-file - pm display-errors timezone workers-log-file))) + pm display-errors timezone workers-log-file)) + #$@(if php-ini-file + `("-c" ,php-ini-file) + '())) #:pid-file #$pid-file)) (stop #~(make-kill-destructor))))))) |