Univention Bugzilla – Bug 49595
Require slapd in /etc/init.d/nagios-nrpe-server
Last modified: 2021-04-06 13:00:25 CEST
Created attachment 10053 [details] Add slapd to Required-Start in nagios-nrpe-server init script Normally nagios-nrpe-server uses a local user called nagios to start nrpe. A customer has created a "nagios" user in the LDAP because they require it on many other non-UCS systems which are joined to the domain. This resulted in NRPE not starting after the update to 4.3, because NRPE starts before slapd normally. The problem with this specific use-case persist with 4.4. If we changed the requirements of nagios-nrpe-server so that it requires slapd this use case would work again. Attached is a very simple patch that adds slapd to Required-Start in the init script. We'd need to regenerate the systemd service generated by systemd-sysv-generator as well.
Created attachment 10054 [details] Optionally add slapd to Required-Start in nagios-nrpe-server init script Another approach, which I personally favour, would be to make the requirement optionally via UCR. Attached is another patch for this. It currently also pastes an empty line below the Required-Start line when I "ucr commit" it. Not sure why that is right now tbh.
@Ingo Would love to get your opinion on this from a product management perspective :)
Adding it to the init script in the proposed way would cause the init script to fail on any system where no slapd is installed - that would be memberservers.
Comment on attachment 10053 [details] Add slapd to Required-Start in nagios-nrpe-server init script You're right of course
Read <https://wiki.debian.org/LSBInitScripts>: Use "Should-Start:" instead of "Required-Start:" as the later would still not work on MemberServers.