Chkconfig Installed But Not Working
I've got a RHEL 5.7 server running and when it boots, Apache (httpd) is not being enabled so I verified I had 'chkconfig' package installed:
Code:
[root@venus ~]# rpm -qa | grep chkconfig Code:
[root@venus ~]# chkconfig --list 2345 |
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.
|
@ Reply
Hi carlosinfl,
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. |
Nope. I ever logged in as root, and omitted the 'sudo' process completely. It was my 1st thought too but sadly not the issue.
|
well no one mentioned sudo. sudo is not su.
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. |
@ Reply
Did you check if /sbin/chkconfig file exist or not? If yes, then try to run it as /sbin/chkconfig. If that also didn't work try to run
Code:
rpm -qf /sbin/chkconfig |
All times are GMT -5. The time now is 02:32 PM. |