php7: facilitate running php7-fastcgi without listening on TCP socket 8673/head
authorW. Michael Petullo <mike@flyn.org>
Sat, 13 Apr 2019 12:23:43 +0000 (08:23 -0400)
committerW. Michael Petullo <mike@flyn.org>
Sat, 13 Apr 2019 12:25:34 +0000 (08:25 -0400)
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 <mike@flyn.org>
lang/php7/files/php7-fastcgi.init

index 21f5b09e1545c1d158f1a585194b7a1831e27e90..6106b4f81b7820a97a613b562b57bc348fdf088a 100644 (file)
@@ -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() {