Is your feature request related to a problem? Please describe.
For unknown reasons, on one of our servers, /etc/systemd/system contained a "httpd.service" file. In that file some service properties of Apache were defined, like
[Service]
EnvironmentFile=/etc/sysconfig/httpd
This worked well with the existing Apache installation. But during the centos2alma conversion, Apache is replaced by a new version, and the EnvironmentFile entry was no longer valid. This lead to a situation where Apache entered an auto-restart rotation and failed to start over and over and over again. The problem with that situation for a user is, that an error message like "Environment file not found" is logged to /var/log/messages, but where is that file defined? Well, it was defined in a superfluous /etc/systemd/system/httpd.service file.
Describe the solution you'd like
We propose to pre-check the existence of /etc/systemd/system/httpd.service, but also entries in /etc/systemd/system/httpd.service.d. An informative message should be displayed to a user, telling the user that these files might contain settings that will discontinue to work with a new Apache installation.
Describe alternatives you've considered
n/a
Is your feature request related to a problem? Please describe.
For unknown reasons, on one of our servers, /etc/systemd/system contained a "httpd.service" file. In that file some service properties of Apache were defined, like
[Service]
EnvironmentFile=/etc/sysconfig/httpd
This worked well with the existing Apache installation. But during the centos2alma conversion, Apache is replaced by a new version, and the EnvironmentFile entry was no longer valid. This lead to a situation where Apache entered an auto-restart rotation and failed to start over and over and over again. The problem with that situation for a user is, that an error message like "Environment file not found" is logged to /var/log/messages, but where is that file defined? Well, it was defined in a superfluous /etc/systemd/system/httpd.service file.
Describe the solution you'd like
We propose to pre-check the existence of /etc/systemd/system/httpd.service, but also entries in /etc/systemd/system/httpd.service.d. An informative message should be displayed to a user, telling the user that these files might contain settings that will discontinue to work with a new Apache installation.
Describe alternatives you've considered
n/a