Red Hat Bugzilla – Bug 248688
Request to add "start", "stop" or similiar parameter.
Last modified: 2014-03-16 23:07:44 EDT
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
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
I really think it's better to keep the two concepts separate; enabling versus