Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-12-2006, 02:52 PM   #1
Registered: May 2006
Location: Leipzig, Germany
Distribution: Kanotix 64
Posts: 45

Rep: Reputation: 15
Question services and runlevels

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/, 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,
Old 05-12-2006, 03:12 PM   #2
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, 03:35 PM   #3
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
/usr/sbin/lsof -i | grep LISTEN
Old 05-12-2006, 03:52 PM   #4
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 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??




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

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

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