Bug 693500 - chkconfig --list does not match systemctl is-enabled
Summary: chkconfig --list does not match systemctl is-enabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: chkconfig
Version: 15
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-04 20:09 UTC by Jeff Bastian
Modified: 2014-03-17 03:27 UTC (History)
3 users (show)

Fixed In Version: chkconfig-1.3.52-1.fc15
Clone Of:
Environment:
Last Closed: 2011-05-03 04:54:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jeff Bastian 2011-04-04 20:09:23 UTC
Description of problem:
I was confused while trying to figure out why the avahi-daemon service was not starting at boot.  chkconfig told me it was enabled:
    # chkconfig --list avahi-daemon

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

    avahi-daemon    0:off   1:off   2:off   3:on    4:on    5:on    6:off

But the service was not starting at boot.

After reading through bug 647831, I tried the new systemctl command:
    # systemctl is-enabled avahi-daemon.service || echo avahi disabled
    avahi disabled

A quick 'systemctl enable avahi-daemon.service' and reboot got avahi-daemon up and running.

Please make chkconfig --list show the actual enabled/disabled status of the service.


Version-Release number of selected component (if applicable):
chkconfig-1.3.51-1.fc15.x86_64
systemd-22-1.fc15.x86_64
avahi-0.6.29-1.fc15.x86_64


How reproducible:
every time

Steps to Reproduce:
1. systemctl disable avahi-daemon.service
2. chkconfig --list avahi-daemon

Actual results:
avahi-daemon    0:off   1:off   2:off   3:on    4:on    5:on    6:off

Expected results:
avahi-daemon    0:off   1:off   2:off   3:off   4:off   5:off   6:off

Additional info:

Comment 1 Bill Nottingham 2011-04-04 20:43:48 UTC
That comment is there for a reason. It's a non-trivial change, and is not scheduled for Fedora 15.

Comment 2 Jeff Bastian 2011-04-04 21:31:42 UTC
Maybe it's just me, but I read the first part of the notice "This output shows SysV services only" and I thought, "Well, chkconfig is showing avahi-daemon, so that must mean it is a SysV service and thus the output is authoritative."

The second part of the notice -- that it might be overridden by a systemd config -- didn't click with me at first.

Re-wording the notice to make the "systemd can override this" part more prominent might help the transition to systemd.  For example:

    Note: This output shows SysV services only and does not include native
          systemd services.
    Note: native systemd services can override SysV configuration.  See the
          systemctl(1) man page and /etc/systemd/system/*.wants/*.service
    Note: See http://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet

Or maybe it's just me...

Comment 3 Bill Nottingham 2011-04-05 00:09:29 UTC
No, it's reasonable to work on the wording. Will have to check the translation status during the string freeze.

Comment 4 Bill Nottingham 2011-04-26 21:46:01 UTC
Can't change the wording now; it will break translations. However, I did commit the following.

http://git.fedorahosted.org/git/?p=chkconfig.git;a=commitdiff;h=55c0f3e082a3531974f83278fc2c1e0f85897ac1

This makes chkconfig not show anything in --list for services overridden by systemd files; it will still print the warning. Hopefully this will be less confusing.

Comment 5 Fedora Update System 2011-04-27 17:49:19 UTC
chkconfig-1.3.52-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/chkconfig-1.3.52-1.fc15

Comment 6 Jeff Bastian 2011-04-28 14:07:24 UTC
I can confirm the new chkconfig successfully hides avahi-daemon:


$ sudo chkconfig --list | grep avahi

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

$

Comment 7 Fedora Update System 2011-04-28 19:02:08 UTC
Package chkconfig-1.3.52-1.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing chkconfig-1.3.52-1.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/chkconfig-1.3.52-1.fc15
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2011-05-03 04:54:09 UTC
chkconfig-1.3.52-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Maurizio 2012-12-23 01:25:13 UTC
sistem hijacked

Comment 10 Maurizio 2012-12-23 06:42:16 UTC
i cant see all services at root  they only be display at service configuration manager


Note You need to log in before you can comment on or make changes to this bug.