Red Hat Bugzilla – Bug 1287644
ipa-server ships /etc/systemd/system/httpd.service which should be used by local administrator
Last modified: 2018-01-16 16:49:26 EST
Description of problem:
The ipa-server package ships /etc/systemd/system/httpd.service.
The man page systemd-system.conf(5) says:
When packages need to customize the configuration, they can install
configuration snippets in /usr/lib/systemd/*.conf.d/. Files in /etc/
are reserved for the local administrator, who may use this logic to
override the configuration files installed by vendor packages.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Verify /etc/systemd/system/httpd.service is not present.
2. yum install -y ipa-server
3. rpm -qf /etc/systemd/system/httpd.service
error: file /etc/systemd/system/httpd.service: No such file or directory
Having httpd.service installed by default in /etc makes it hard to distinguish genuine changes by the admin from those done by future versions of packages, especially for containerized deployments.
Actually, that man page is about configuring systemd itself, not the services.
The man systemd.unit(5) says
Along with a unit file foo.service, a directory foo.service.d/ may
exist. All files with the suffix ".conf" from this directory will be
parsed after the file itself is parsed. This is useful to alter or add
configuration settings to a unit, without having to modify their unit
and also includes
│/etc/systemd/system │ Local configuration │
│/run/systemd/system │ Runtime units │
│/usr/lib/systemd/system │ Units of installed │
│ │ packages │
so I believe the bugzilla is still valid though.
IdM team doesn't have capacity to fix this bug for RHEL 7.4. Moving to next RHEL version. Fixing the bug there will depend on capacity of FreeIPA upstream. Without sufficient justification there is a chance that it will be moved again later.