Closed box293 closed 4 years ago
You need the conf file startup/openrc-conf
, which gets built from startup/openrc-conf.in
. OpenRC automatically sources the script at /etc/conf.d/foo
when it runs /etc/init.d/foo
. The init script is expecting the NRPE_CFG
and NRPE_OPTS
variables to be set, (as you've seen), so we need that conf file to be installed by default, too.
This probably just needs one more line in make install-init
to copy that openrc-conf
file to /etc/conf.d
.
This probably just needs one more line in
make install-init
to copy that openrc-conf file to/etc/conf.d
.
Another option would be to set a default value for NRPE_CFG
right at the top of the init script.
Try this:
https://github.com/NagiosEnterprises/nrpe/pull/170
It should work even without the conf.d file.
Tested and it fixed the issue, thanks very much @orlitzky.
I'm sure @hedenface will merge and close this issue.
Installing NRPE 3.2.1 on Gentoo using openrc-init produces the following error in syslog:
I'm not 100% sure what is going on, having a look at the
/etc/init.d/nrpe
script:I assume that
${NRPE_CFG}
and${NRPE_OPTS}
are being passed to the script but I'm not entirely sure how.I looked at the file in the run directory:
So I added the following lines to the
/etc/init.d/nrpe
script before the command line:Then I typed these commands:
Seems to be working now.
After enabling the service to start of boot and restarting the machine it works OK:
@orlitzky your thoughts.
Here's the full output of my build process: