Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600606 - www-servers/spawn-fcgi: default settings in conf.d
Summary: www-servers/spawn-fcgi: default settings in conf.d
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Lowest enhancement (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 618090
  Show dependency tree
 
Reported: 2016-11-23 18:42 UTC by Matthias Hauber
Modified: 2018-07-12 09:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Hauber 2016-11-23 18:42:29 UTC
Hi,

# scenario

    ln -s spawn-fcgi /etc/init.d/spawn-fcgi.cgit
    cat > /etc/conf.d/spawn-fcgi.cgit <<EOF
    FCGI_SOCKET=/run/fcgiwrap-cgit.sock
    FCGI_PROGRAM=/usr/sbin/fcgiwrap
    FCGI_CHILDREN=1
    FCGI_USER=nginx
    FCGI_GROUP=nginx
    ALLOWED_ENV="PATH"
    EOF

    /etc/init.d/spawn-fcgi.cgit start
     * Only one of the two may be defined:
     *   FCGI_SOCKET=/run/fcgiwrap-cgit.sock
     *   FCGI_PORT=1234
     * ERROR: spawn-fcgi.cgit failed to start

appending the following will work

    cat >> /etc/conf.d/spawn-fcgi.cgit <<EOF
    FCGI_ADDRESS=
    FCGI_PORT=
    EOF

why I have to overwrite settings from /etc/conf.d/spawn-fcgi when /etc/init.d/spawn-fcgi is not executable without symlink?
From this perspective it would make sense to ship a default config without conflicting values.
Comment 1 Pacho Ramos gentoo-dev 2018-07-12 09:38:24 UTC
default settings are not colliding as SOCKET is empty
# The filename specified by
# FCGI_SOCKET will be suffixed with a number for each child process, for
# example, fcgi.socket-1. 
# Leave empty to use an IP socket (default). See below. Enabling this, 
# disables the IP socket.
# 
FCGI_SOCKET=

# When using FCGI_PORT, connections will only be accepted from the following
# address. The default is 127.0.0.1. Use 0.0.0.0 to bind to all addresses.
#
FCGI_ADDRESS=127.0.0.1