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 <mike@flyn.org>
This commit is contained in:
parent
c36e8c6ea2
commit
a5d2ea9ed0
1 changed files with 2 additions and 2 deletions
|
@ -11,12 +11,12 @@ start_instance() {
|
||||||
local port
|
local port
|
||||||
|
|
||||||
config_get_bool enabled "$section" 'enabled' 0
|
config_get_bool enabled "$section" 'enabled' 0
|
||||||
config_get port "$section" 'port' 1026
|
config_get port "$section" 'port'
|
||||||
|
|
||||||
[ $enabled -gt 0 ] || return 1
|
[ $enabled -gt 0 ] || return 1
|
||||||
|
|
||||||
PHP_FCGI_CHILDREN='' \
|
PHP_FCGI_CHILDREN='' \
|
||||||
service_start /usr/bin/php-fcgi -b $port
|
service_start /usr/bin/php-fcgi ${port:+-b $port}
|
||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
|
|
Loading…
Reference in a new issue