Created attachment 474580 [details] nrpe-3.1.0.service The ebuild for the new version 3.1.0 introduces a new init file (mainly because of the new location of the binary). This should also be done in the service file, I attached.
Created attachment 474582 [details] nrpe-3.1.0.service Here is a service file a bit more compliant with systemd usage: it uses the new -f option which runs the server in foreground for systemd.
Upstream has a service file here: https://github.com/NagiosEnterprises/nrpe/blob/master/startup/default-service.in If you substitute the correct paths for the variables in the file (like @sbindir@), does that one work? If so, I'd rather stick with that one so we don't have to carry another file around. If not, I'll ship this one.
Yes, the upstream service file works well. I made the check with the following patch to the ebuild: --- /usr/local/portage/net-analyzer/nrpe/nrpe-3.1.1.ebuild~ 2017-06-07 14:23:15.000000000 +0200 +++ /usr/local/portage/net-analyzer/nrpe/nrpe-3.1.1.ebuild 2017-07-16 11:27:55.638433985 +0200 @@ -49,7 +49,7 @@ fperms 0640 /etc/nagios/nrpe.cfg newinitd "${FILESDIR}/nrpe-${PV}.init" nrpe - systemd_dounit "${FILESDIR}/${PN}.service" + systemd_newunit "${S}/startup/default-service" "${PN}.service" insinto /etc/xinetd.d/ newins "${FILESDIR}/nrpe.xinetd.2" nrpe
Thanks! The new nrpe-3.2.0-r1 has your fix.