Bug #20431
closedkatello-service attempts to execute services in 'static' state, causing errors
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1462525
Description of problem:
If you run katello-remove on a system, it will set the postgres service to 'static' instead of removing it.
However, if you then install a capsule on the same system, katello-service checks to see whether or not to restart a service based on the result of 'systemctl is-enabled X'. This returns 0 for 'static' services, which causes katello-service to attempt to restart postgres, which no longer exists.
Version-Release number of selected component (if applicable): 6.2.9
How reproducible: every time
Steps to Reproduce:
1. install satellite to a system
2. katello-remove
3. install capsule
Actual results: katello-service start will raise an error about postgres
Expected results: no mention of postgres in katello-service start