Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 252191 Details for
Bug 290241
Enhancement to chkconfig - imply list when no action specified
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch for this
diff (text/plain), 2.45 KB, created by
Bill Nottingham
on 2007-11-08 21:37:25 UTC
(
hide
)
Description:
patch for this
Filename:
MIME Type:
Creator:
Bill Nottingham
Created:
2007-11-08 21:37:25 UTC
Size:
2.45 KB
patch
obsolete
>Index: chkconfig.8 >=================================================================== >RCS file: /usr/local/CVS/chkconfig/chkconfig.8,v >retrieving revision 1.17 >diff -u -r1.17 chkconfig.8 >--- chkconfig.8 19 Jul 2007 03:51:54 -0000 1.17 >+++ chkconfig.8 8 Nov 2007 21:21:26 -0000 >@@ -4,7 +4,7 @@ > chkconfig \- updates and queries runlevel information for system services > > .SH SYNOPSIS >-\fBchkconfig\fR \fB--list\fR [\fIname\fR] >+\fBchkconfig\fR [\fB--list\fR] [\fIname\fR] > .br > \fBchkconfig\fR \fB--add\fR \fIname\fR > .br >@@ -35,12 +35,15 @@ > startup information for services, changing the startup information > for services, and checking the startup state of a particular service. > >-When \fBchkconfig\fR is run without any options, it displays usage >-information. If only a service name is given, it checks to see if >+When \fBchkconfig\fR is run with only a service name, it checks to see if > the service is configured to be started in the current runlevel. If > it is, \fBchkconfig\fR returns true; otherwise it returns false. The > \fB--level\fR option may be used to have \fBchkconfig\fR query an > alternative runlevel rather than the current one. >+ >+When \fBchkconfig\fR is run with the \fB--list\fR argument, or no >+arguments at all, a listing is displayed of all services and their >+current configuration. > > If one of \fBon\fR, \fBoff\fR, \fBreset\fR, or \fBresetpriorities\fR is > specified after the service name, \fBchkconfig\fR changes the startup >Index: chkconfig.c >=================================================================== >RCS file: /usr/local/CVS/chkconfig/chkconfig.c,v >retrieving revision 1.50 >diff -u -r1.50 chkconfig.c >--- chkconfig.c 3 Aug 2007 17:57:56 -0000 1.50 >+++ chkconfig.c 8 Nov 2007 21:21:26 -0000 >@@ -37,7 +37,7 @@ > fprintf(stderr, _("This may be freely redistributed under the terms of " > "the GNU Public License.\n")); > fprintf(stderr, "\n"); >- fprintf(stderr, _("usage: %s --list [name]\n"), progname); >+ fprintf(stderr, _("usage: %s [--list] [name]\n"), progname); > fprintf(stderr, _(" %s --add <name>\n"), progname); > fprintf(stderr, _(" %s --del <name>\n"), progname); > fprintf(stderr, _(" %s --override <name>\n"), progname); >@@ -609,7 +609,9 @@ > exit(0); > } > >- if (help || argc == 1) usage(); >+ if (help) usage(); >+ >+ if (argc == 1) return listService(NULL); > > if ((listItem + addItem + delItem + overrideItem) > 1) { > fprintf(stderr, _("only one of --list, --add, --del, or --override"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 290241
:
195341
| 252191