Bug 176184

Summary: Make chkconfig without arguments the same as --list
Product: [Fedora] Fedora Reporter: Brad Ritchie <britchie>
Component: chkconfigAssignee: Bill Nottingham <notting>
Status: CLOSED DUPLICATE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: rvokal
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-08 21:51:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Brad Ritchie 2005-12-19 21:02:05 UTC
Description of problem:
=======================
The --list option to chkconfig is cumbersome to use from the shell when
constantly making changes and verifying the status of services.  It would be
nice if chkconfig listed the service by default when no arguments (on|off|reset)
were given.  Currently, chkconfig without any options is the same as "chkconfig
--help".  This change would make chkconfig without any arguments behave the same
as "chkconfig --list".  Users would be required to explicitly enter "chkconfig
--help" to get usage info, but this is consistent with current conventions.

Ideally, this would work for individual services as well (eg. "chkconfig sshd"
would list the status for the sshd service), but this form is currently used as
a test to see if a service is enabled or not, based on it's return value.

In addition, it would convenient if all options (--list, --add, --del, --level)
allowed a single-letter short form. (eg. -l, -a, -d, -L).  These are just
suggestions... they're not necessarily intuitive (-d could be confused for
"debug") but they make command-line editing easier in the case of --list, they
follow the standard (old-school) convention and are supported by the popt library.


Version-Release number of selected component (if applicable):
=============================================================
chkconfig version 1.3.23 - Copyright (C) 1997-2000 Red Hat, Inc.

Comment 1 Bill Nottingham 2007-11-08 21:51:53 UTC
Will be in 1.3.37-1.

*** This bug has been marked as a duplicate of 290241 ***