Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1193495

Summary: chkconfig --list name filtering doesn't work for xinetd type
Product: Red Hat Enterprise Linux 7 Reporter: Karel Volný <kvolny>
Component: chkconfigAssignee: Lukáš Nykrýn <lnykryn>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: jscotka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: chkconfig-1.3.61-5.el7 Doc Type: Bug Fix
Doc Text:
Cause: Combination of --type xinetd and --list did not work. Consequence: It was not working. Fix: We have fixed it. Result: Now it works.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 04:13:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Karel Volný 2015-02-17 13:18:21 UTC
Description of problem:
While playing with old style xinetd activation of tftp, I have found that chkconfig is unable to filter the output for the service.

Version-Release number of selected component (if applicable):
chkconfig-1.3.61-4.el7

How reproducible:
always

Steps to Reproduce:
1. chkconfig --type xinetd --list tftp ; echo $?

Actual results:
Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

      If you want to list systemd services use 'systemctl list-unit-files'.
      To see services enabled on particular target use
      'systemctl list-dependencies [target]'.

1


Expected results (the same command on RHEL6):
tftp            off
0

Additional info:
listing and filtering SysV type services works, as well as listing xinetd type without giving service name, i.e.:

# chkconfig --type xinetd --list ; echo $?

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

      If you want to list systemd services use 'systemctl list-unit-files'.
      To see services enabled on particular target use
      'systemctl list-dependencies [target]'.


xinetd based services:
        chargen-dgram:  off
        chargen-stream: off
        cvs:            off
        daytime-dgram:  off
        daytime-stream: off
        discard-dgram:  off
        discard-stream: off
        echo-dgram:     off
        echo-stream:    off
        tcpmux-server:  off
        tftp:           off
        time-dgram:     off
        time-stream:    off
0

Comment 2 Lukáš Nykrýn 2015-02-18 11:25:40 UTC
Good catch. Thanks!

Upstream fix:
https://git.fedorahosted.org/cgit/chkconfig.git/commit/?id=f563a6e807c43966ab2c9fd0fbd0694f764c0701

Comment 7 errata-xmlrpc 2015-11-19 04:13:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2158.html