We update some servers of our infrastructure utilizing poudriere and pkg. I realized recently, that when using pkg with poudriere-built packages from our repository, soemtimes the access rights of critical folders aren't set in the correct manner, resulting in a fail of restarting or even starting icinga2. In particular (my findings) those folders are: /var/cache/icinga2: it is set to root:icinga after an update, but should be icinga:icinga. Restart of icinga2 fails if not set correctly. /var/run/icinga2 and /var/run/icinga2/cmd: when module livestatus is enabled, the start of the service will fail, because, as mentioned before, the folders var/run/icinga2 and var/run/icinga2/cmd are owned by root and should be owned by icnga. Setting the correct access rights results in a normal operation of icinga2.
A commit references this bug: Author: lme Date: Fri Oct 12 12:19:58 UTC 2018 New revision: 481898 URL: https://svnweb.freebsd.org/changeset/ports/481898 Log: net-mgmt/icinga2: - Fix directory permissions after upgrading icinga2 via pkg - Whitespace fixes in icinga2.in - Bump PORTREVISION PR: 227965, 227107 Submitted by: O. Hartmann <ohartmann@walstatt.org> MFH: 2018Q4 Changes: head/net-mgmt/icinga2/Makefile head/net-mgmt/icinga2/files/icinga2.in
A fix was comitted. Thanks for reporting this and sorry for the long delay.
A commit references this bug: Author: lme Date: Tue Oct 16 11:37:56 UTC 2018 New revision: 482218 URL: https://svnweb.freebsd.org/changeset/ports/482218 Log: MFH: r481898 net-mgmt/icinga2: - Fix directory permissions after upgrading icinga2 via pkg - Whitespace fixes in icinga2.in - Bump PORTREVISION PR: 227965, 227107 Submitted by: O. Hartmann <ohartmann@walstatt.org> Approved by: ports-secteam (miwi) Changes: _U branches/2018Q4/ branches/2018Q4/net-mgmt/icinga2/Makefile branches/2018Q4/net-mgmt/icinga2/files/icinga2.in