It would be tempting to run the icinga2 container without a pid namespace, i.e. with --pid=host, to allow checks to see all processes/threads on the host.
However, the entrypoint program only initializes the data dir if its own PID is 1, which is obviously not the case with --pid=host. Is there a good reason for this behaviour? Why do we ony initialize if pid==1? Why not initialize whenever the dirs don't exist?
It would be tempting to run the icinga2 container without a pid namespace, i.e. with
--pid=host, to allow checks to see all processes/threads on the host.However, the entrypoint program only initializes the data dir if its own PID is 1, which is obviously not the case with
--pid=host. Is there a good reason for this behaviour? Why do we ony initialize if pid==1? Why not initialize whenever the dirs don't exist?