Bug 248688 - Request to add "start", "stop" or similiar parameter.
Summary: Request to add "start", "stop" or similiar parameter.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: chkconfig
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-07-18 09:10 UTC by Jan ONDREJ
Modified: 2014-03-17 03:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-07-18 18:52:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jan ONDREJ 2007-07-18 09:10:49 UTC
Description of problem:
Is it possible to add "start" and "stop" parameters to chkconfig command?
It's requested function can be to set autostarting of this service and also
start it currently. Something like:

if [ "$2" = "start" ]; then
  /sbin/chkconfig $1 on
  /sbin/service $1 start
elif [ "$2" = "stop" ]; then
  /sbin/service $1 stop
  /sbin/chkconfig $1 off
else
  /sbin/chkconfig "$@"
fi


Additional info:
It is only a feature request. If it is not right to add feature requests here,
please tell me where.
May be it is possible to add "on" and "off" parameters to the service command,
but it may be more complicated, because a programmer can define it's own
rc-script paramters.

Thank you.

Comment 1 Bill Nottingham 2007-07-18 18:52:56 UTC
I really think it's better to keep the two concepts separate; enabling versus
starting/stopping.


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