Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Now I also verified the 'man' page which is also installed but when I try any of the commands, I get an error indicating that the command 'chkconfig' isn't recognized in Bash:
Code:
[root@venus ~]# chkconfig --list 2345
bash: chkconfig: command not found
[root@venus ~]# chkconfig --add httpd
bash: chkconfig: command not found
I called Red Hat and they were no help. They wanted to do some custom start script rather than resolve the problem. I do have the start scripts all present in /etc/init.d/ but I have no idea why 'chkconfig' utility isnt working. Anyone?
this sort of error is usually down to you having run "su" to become root instead of "su -", meaning you don't have /sbin/ in your path Did I guess right? You can run "/sbin/chkconfig" to use the absolute path.
acid_kewpie is right if you have gained access using su then make sure you either run su - root or su -. Another thing that I have noticed is that the package is not showing up the architecture.
Syntax is also not correct. chkconfig --list 2345 is not correct. The correct way is chkconfig --list <service name>. If you want to turn a service on on all levels then run chkconfig <service name> on.
so did you try the other things we mentioned? I'm sure you can check for yourself to see if the files actually exist or not. You shouldn't be hitting a brick wall this quickly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.