LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-17-2011, 01:08 AM   #1
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Rep: Reputation: Disabled
Some commands not running in primary nameserver using cetos 5.6


hello everyone,

when i logged into my primary name server and typed the command chkcongig --list (as i have been newely recruited),it said that the command is not found...is it that i have to add path in _bash_profile?if so then how and what should i add?

And when i used the command yum check-update,it said yum-lock..what does that mean and what should i do?
Please help me...it has centos 5.6...
 
Old 10-17-2011, 01:33 AM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 774
Blog Entries: 6

Rep: Reputation: 75
chkcongig --list <- your typo

use
Quote:
[root@host ~]# chkconfig --list
about yum lock u need to kill or stop existing process

Quote:
[root@host ~]# ps x |grep yum
and kill the pid number with eg kill -9 654643

ps: stop yum-updatesd if it running
 
Old 10-17-2011, 03:00 AM   #3
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
thanks ...

ya updatesd is running continuously...but how to stop it and can u please tell me why is it running?

and i'm not clear about the chkconfig command again,can you please elaborate your explanation?
 
Old 10-17-2011, 03:18 AM   #4
hen770
Member
 
Registered: Oct 2010
Distribution: Arch
Posts: 136

Rep: Reputation: 7
On CentOS it should be chkconfig with "f" not with "g" as you have wrote above.
Also try to be root if not then try /sbin/chkconfig.
 
Old 10-17-2011, 03:54 AM   #5
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 774
Blog Entries: 6

Rep: Reputation: 75
Quote:
Originally Posted by SarahGurung View Post
thanks ...

ya updatesd is running continuously...but how to stop it and can u please tell me why is it running?

and i'm not clear about the chkconfig command again,can you please elaborate your explanation?
first:
yup , yum-updatesd is running by default , for me i no need this services "that for me"
so i just remove the software with "yum remove yum-updatesd"
because this yum-updatesd is use for auto update system which i no need


second

chkconfig is use for controlling when you want to start or off the program from running
chkconfig --list will give you list of current status of program

example: chkconfig sendmail off <- this will off sendmail from running
for more info look here http://www.centos.org/docs/5/html/De...chkconfig.html
 
Old 10-17-2011, 04:45 AM   #6
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well hen770,it tried with chkconfig only,the above one is a typing mustake,sorry....

and "Routers", i logged in as root and tried that command,it's saying chkconfig command not found...i want to see the services running and their runlevels and status as well...so what could be the possible problem?
 
Old 10-17-2011, 04:58 AM   #7
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 774
Blog Entries: 6

Rep: Reputation: 75
then do

Code:
yum install chkconfig
as root
 
Old 10-17-2011, 05:05 AM   #8
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
it has been already installed by my boss,it's a running and live server,he isn't here so i was tryin to see the services by doing ssh and logging in as root but says command not found....when my boss did ssh last time,that command was working but isnt working from my pc..

So i was wondering that maybe i need to configure the _bash_profile and add some system path or variables,i'm not quite sure..

can anyone help on this?
 
Old 10-17-2011, 05:41 AM   #9
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 774
Blog Entries: 6

Rep: Reputation: 75
ls -l /sbin/chkconfig

post the output here

and dont forget to run with su -
 
1 members found this post helpful.
Old 10-17-2011, 06:06 AM   #10
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
hey thank you so much "routers".....will never forget your help...

it worked now....Thank you once again....

if you don't mind then can you please tell me how can i put off all the listed services that were listed by chkconfig --list?

Last edited by SarahGurung; 10-17-2011 at 06:14 AM.
 
Old 10-17-2011, 06:20 AM   #11
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
you can use this command

Code:
#chkconfig --level 345 (service_name) off

here '345' are the levels where you want the service to be off

to make the service 'on' just put the 'off' to 'on'

Last edited by deep27ak; 10-17-2011 at 07:03 AM.
 
1 members found this post helpful.
Old 10-17-2011, 06:40 AM   #12
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
thanks mr.deepak,you have helped me a lot...can you also tell me what does runlevel 2 and 4 stand for?
 
Old 10-17-2011, 06:58 AM   #13
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
IN red hat linux

run level 2---it is user defined run level which is not used
run level 4---is where you the system boots without networking features


you 're always welcome
 
Old 10-17-2011, 07:01 AM   #14
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
ok thanks a lot...got it...

will get back to you if i get any doubts again........

thanks once again.....
 
Old 10-17-2011, 07:15 AM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,943

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
It depends on the distribution. Redhat runlevels are:
Quote:
0 Halt
1 Single-User mode
2 Multi-user mode no GUI, no networking
3 Multi-User mode, no GUI with networking
4 Not used/User-definable
5 Multi-User mode, GUI with networking.
6 Reboot
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
qt4 designer not starting on Cetos 5 tomtom1 Linux - Software 2 06-22-2011 02:40 AM
Partitioning; safe to add a primary when already having primary and extended/logical? Wim Sturkenboom Linux - General 2 08-16-2009 01:10 PM
Running Fedora 4 on primary master and cant acsess my xp files on primary slave roxberry1 Linux - Newbie 5 01-29-2006 12:37 PM
Dual boot primary Linspire & XP primary slave? watmonki Linspire/Freespire 5 11-01-2005 09:16 PM
boot loader, MBR, redhat9 on primary slave, winxp on primary master samik Linux - Hardware 4 10-15-2003 09:55 PM


All times are GMT -5. The time now is 01:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration