Hi, by ‘ps aux | grep icinga2’ I notice the process runs as user ‘nagios’.
I’m trying to understand where this is set on systemd.
I checked in these files:
is this for informational purpose, or are you in the progress of changing this? If so, please don’t. The Debian packages use this user for historical purpose, and there’s no guarantee that Icinga works after changing this.
Icinga comes pre-compiled with the run-as-user, the package build parameters set this accordingly to icinga/nagios. On startup, Icinga checks whether it has been started by root and impersonates Icinga with the set user/group (Systemd), or it already was spawned as the daemon user (that’s what happens in SysVInit).
It is possible to override this behaviour with sysconfig, still all the filesystem permissions and and later updates are problematic.