From a5d2ea9ed0faf5dcdc8a3f2316cc0d4b1e3deee0 Mon Sep 17 00:00:00 2001 From: "W. Michael Petullo" Date: Sat, 13 Apr 2019 08:23:43 -0400 Subject: [PATCH] php7: facilitate running php7-fastcgi without listening on TCP socket The init.d script for php7-fastcgi no longer invokes php7-fastcgi with the '-b' flag when 'port' does not appear in /etc/config/php7-fastcgi. This causes php7-fastcgi to communicate using only a Unix socket. Signed-off-by: W. Michael Petullo --- lang/php7/files/php7-fastcgi.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/php7/files/php7-fastcgi.init b/lang/php7/files/php7-fastcgi.init index 21f5b09e1..6106b4f81 100644 --- a/lang/php7/files/php7-fastcgi.init +++ b/lang/php7/files/php7-fastcgi.init @@ -11,12 +11,12 @@ start_instance() { local port config_get_bool enabled "$section" 'enabled' 0 - config_get port "$section" 'port' 1026 + config_get port "$section" 'port' [ $enabled -gt 0 ] || return 1 PHP_FCGI_CHILDREN='' \ - service_start /usr/bin/php-fcgi -b $port + service_start /usr/bin/php-fcgi ${port:+-b $port} } start() {