Bug #11249
closed"katello-service list" doesn't work on Satellite 6 installed on RHEL7
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1213382
Description of problem:
katello-service list has discrepancy in listing the output of "katello-service list" as the script check for output of chkconfig for the all the katello services, which of course wouldn't work on the EL7 system as it uses systemd to list unit-files.
Version-Release number of selected component (if applicable):
Satellite 6.0.x and Satellite 6.1
katello-service scripts
How reproducible:
100%
Steps to Reproduce:
1. Install Satellite 6.0.x or Satellite 6.1 Beta
2. Execute "katello-service list"
Actual results:
"katello-service list" command is broken on EL7, which perfectly works in EL6
Expected results:
"katello-service list" should work in EL7 as well.
Additional info:
Checking the /usr/bin/katello-service file we see the below section which checks for the output of chkconfig for list command
chkconfig() {
RET=0
E_STAT=0
for service in $SERVICES; do
if [ -e /etc/init.d/$service -o -e /lib/systemd/system/$service.service ]; then
/sbin/chkconfig $service "$@"
E_STAT=$?
fi
if [ $E_STAT -ne 0 ]; then
RET=$E_STAT
fi
done
return $RET
}