icinga-packaging icon indicating copy to clipboard operation
icinga-packaging copied to clipboard

Better solution for sysconfig defaults and systemd units

Open lazyfrosch opened this issue 7 years ago • 2 comments
trafficstars

While working on https://github.com/Icinga/deb-icinga2/issues/4 I noticed a difference in how environment defaults work.

RPM: /etc/sysconfig/icinga2
Debian: /etc/default/icinga / /usr/lib/icinga2/icinga2

We should update this for both systems:

  • Compiled in defaults should be installed under /usr/lib/icinga2/environment
  • /etc/{sysconfig,default}/icinga2 should only be a placeholder for user changes
  • Add this behavior for RPM
  • Drop custom systemd files/defaults for Debian

This is for >= 2.9

lazyfrosch avatar Mar 11 '18 15:03 lazyfrosch

@htriem Shall we do this and why (not)?

Al2Klimov avatar Sep 21 '21 16:09 Al2Klimov

I'd agree that it is a lot cleaner in the way @lazyfrosch described it. However, especially with dropping the systemd-files, this should be a feature for the next major.

htriem avatar Nov 16 '22 14:11 htriem