llng/2.0 build with alternate STORAGECONFFILE= fails on exec; looks for _default_ .ini path/location
dropping from master -> 2.0 branch
cd src/lemonldap-ng
git log -n1
1 commit afe7588c1a30c84b149c8cc788ad36fbd4ce74d6 (HEAD, origin/v2.0)
2 Author: Maxime Besson <maxime.besson@worteks.com>
3 Date: Mon May 25 15:25:52 2020 +0200
4
5 Fix doc for #2205
build & install
make
make install \
PROD=yes \
STORAGECONFFILE=/usr/local/etc/lemonldap/lemonldap-ng.ini \
ERASECONFIG=0 \
USEDEBIANLIBS=no \
USEEXTERNALLIBS=no \
DNSDOMAIN=lemonldap.dev.loc
...
LemonLDAP::NG v2.0.8 is installed with these parameters:
- System configuration: /usr/local/lemonldap-ng/etc
- DNS domain (for cookies and virtual hosts): lemonldap.dev.loc
...
ls -al /usr/local/lemonldap-ng/sbin/llng-fastcgi-server
-rwxr-xr-x 1 wwwrun www 7.7K May 25 09:33 /usr/local/lemonldap-ng/sbin/llng-fastcgi-server*
with
cat /etc/systemd/system/llng-fastcgi-server.service
[Unit]
Description=llng FCGI
After=network-online.target
[Service]
User=wwwrun
Group=www
Type=forking
EnvironmentFile=/usr/local/etc/lemonldap/llng-fastcgi-server
PIDFile=/run/lemonldap/llng-fastcgi-server.pid
ExecStart=/usr/local/lemonldap-ng/sbin/llng-fastcgi-server
KillMode=mixed
[Install]
Alias=llng-fastcgi-server.service
WantedBy=multi-user.target
cat /usr/local/etc/lemonldap/llng-fastcgi-server
NPROC = 7
SOCKET=/run/lemonldap/llng-fastcgi.sock
PID=/run/lemonldap/llng-fastcgi-server.pid
USER=wwwrun
GROUP=www
PM_MAX_REQUESTS=500
exec
systemctl start llng-fastcgi-server
fails
May 25 09:35:12 dev.loc LLNG[50958]: [error] Lemonldap::NG::Handler::Server::Main : unable to build configuration: Cannot read /usr/local/lemonldap-ng/etc/lemonldap-ng.ini to get configuration access parameters.
Error: configStorage: type is not defined.
May 25 09:35:12 dev.loc llng-fastcgi-server[50958]: FastCGI daemon started (pid 51014)
May 25 09:35:12 dev.loc systemd[1]: Started FastCGI server for Lemonldap::NG websso system.
looking for the .ini still @
/usr/local/lemonldap-ng/etc/lemonldap-ng.ini
rather than as specified
STORAGECONFFILE=/usr/local/etc/lemonldap/lemonldap-ng.ini
with 'master' branch, the STORAGECONFFILE= spec is respected, and the spec'd .ini file is found, at least