Red Hat Bugzilla – Bug 176184
Make chkconfig without arguments the same as --list
Last modified: 2014-03-16 22:57:12 EDT
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.
Will be in 1.3.37-1.
*** This bug has been marked as a duplicate of 290241 ***