LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-12-2006, 03:52 PM   #1
sancho1980
Member
 
Registered: May 2006
Location: Leipzig, Germany
Distribution: Kanotix 64
Posts: 45

Rep: Reputation: 15
Question services and runlevels


hi
i'm trying to get my hands on linux following a book called linux-a hands-on-guide that comes in chapters with exercises at the end of each and stuff and I'm having some understanding problems:
the books says that to find out which services are currently running you need to look into /etc/rc0.d-rcS.d..now, I'm using kanotix linux live and strangely on my two computers where I tried it out all these directories where empty!!
the exercises go on to ask: what services are currently running and "Which services run in graphical mode that don't run in text mode?"..How am I going to know? I tried apropo and man and stuff but I wasn't able to find answers that would satisfay me; to tell the truth, i still don't get the point of having different runlevels..
thanks in advance,
martin
 
Old 05-12-2006, 04:12 PM   #2
Michael_aust
Member
 
Registered: Aug 2005
Location: Lancashire (United Kingdom)
Distribution: Debian Etch, on 686 machine.
Posts: 509

Rep: Reputation: 31
KSysv is a graphical tool for editing what services atart at what run level etc.
 
Old 05-12-2006, 04:35 PM   #3
dtcs
LQ Newbie
 
Registered: Jul 2005
Distribution: Slackware, Debian
Posts: 28

Rep: Reputation: 15
Hello sancho1980
Runlevels are important part of any operating system. Runlevels range from 0-6.
0 is the shutdown runlevel that your system goes into when you want to bring the system down.
1 single user for fixing stuff
2 unused
3 multiuser default
4 multiuser with graphical login such as gdm, xdm
5 unused
6 reboot
vlaues may vary between distros.

You can change the runlevel with this command: telinit [runlevel_number]
and to check current runlevel: who -r

Runlevels come in two flavours, BSD and SystemV styles.
BSD style runlevels are placed in /etc/rc.d/
SysV places runlevels in directories /etc/rc[0-6].d

In your book they are using SysV style.
To check what services are running execute:
netstat -pn -l -A inet
OR
/usr/sbin/lsof -i | grep LISTEN
 
Old 05-12-2006, 04:52 PM   #4
sancho1980
Member
 
Registered: May 2006
Location: Leipzig, Germany
Distribution: Kanotix 64
Posts: 45

Original Poster
Rep: Reputation: 15
thanx for your replies
but just to make sure I don't mix things up:
service = daemon?
I mean, I though the guy was talking about all the different daemons that make my system run like the X window system and stuff..but after entering your command

netstat -pn -l -A inet

I get an output that looks like it wants to tell me something about inet services

i'm still confused because the /etc/rcX/-directories are empty on my system..suppose that has to do with my distro's being a "linux live on cd" (kanotix)...but still, how does it know what services to start...i mean, evidently there ARE services running otherwise i wouldn't have a gui and inet access and stuff...do you get my point?

i also tried ksysv and...the same..seems like NO services are running and there aren't any services available either that i could add to all the different runlevels...anybody got a clue whether this is down to kanotix or what am i getting wrong??

thanks,

martin
 
  


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
Runlevels nin881 Slackware 8 05-21-2005 03:50 AM
RunLevels bcom Mandriva 3 05-31-2004 08:07 PM
runlevels? Computergirl24 Linux - Software 4 12-26-2003 05:45 PM
Prevent services from restarting when changing runlevels fearofcarpet Red Hat 1 11-13-2003 03:22 PM
runlevels kriver Linux - General 1 03-13-2002 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:11 AM.

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