omd icon indicating copy to clipboard operation
omd copied to clipboard

5.30 on EL9: livestatus / xinetd hang during start if started by systemd

Open pbiering opened this issue 1 year ago • 1 comments

Enabled livestatus in 5.30 on EL9: xinetd is working fine on manual start of "omd" but not via "systemd".

Finally it turned out, that it works by either

  • remove/disable line in systemd unit file: #LimitNOFILE=infinity
  • override value with a numeric one, e.g. LimitNOFILE=10240

Very strange, not seen on EL8 - EL9 had latest updates.

Symtom was that script started xinetd, but this hang before creating its PID file.

pbiering avatar Mar 18 '24 19:03 pbiering

sounds like a similar issue as in https://github.com/ConSol-Monitoring/omd/commit/4ccf937f9068c0b9197b0d633dfcb618f94a923b

in that case, the npcd tried to brute force close all filehandles on fork from 0 to max-open-files. And infinity is a pretty large number :-) Maybe xinetd is doing something similar

sni avatar Mar 18 '24 20:03 sni