Bug 248688

Summary: Request to add "start", "stop" or similiar parameter.
Product: [Fedora] Fedora Reporter: Jan ONDREJ <ondrejj>
Component: chkconfigAssignee: Bill Nottingham <notting>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-07-18 18:52:56 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 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.