Serves starting at start up Debian?

New to Debian (Or Linux in general)? Ask your questions here!

Serves starting at start up Debian?

Postby miros84 » 2010-01-31 11:09

When I start Debian, it lists a lot of servers, deamons and other programs that run at debian start.
is there some list anywhere that I can edit or just see it?
miros84
 
Posts: 221
Joined: 2009-08-06 07:22

Re: Serves starting at start up Debian?

Postby Absent Minded » 2010-01-31 11:39

You an install BUM (Boot Up Manager) to see and view these servers and processes.
Serving the community the best way I can.
Spreading the tradition of Community Spirit.
Please read some Basic Forum Philosophy
Give a man a fish, he eats for a day. Teach him how to fish, he eats for life.
Updated Nov. 19, 2012
User avatar
Absent Minded
 
Posts: 3757
Joined: 2006-07-09 08:50
Location: Washington State U.S.A.

Re: Serves starting at start up Debian?

Postby izar » 2010-01-31 14:02

Also installing sysv-rc-conf will allow you to see the daemons and servers that are started for each one of the run-levels. You can also enable or disable them at startup.
User avatar
izar
 
Posts: 1715
Joined: 2007-01-01 18:34
Location: Euskal Herria

Services started at boot time by Debian

Postby Ahtiga Saraz » 2010-02-01 04:03

miros84 wrote:When I start Debian, it lists a lot of servers, deamons and other programs that run at debian start.
is there some list anywhere that I can edit or just see it?


Yes! The list might not be what you had in mind, but it works (at least on my Debian Lenny system):
Code: Select all
cd /etc/rc5.d
ls

This shows some scripts, one for each daemon started when booting into run level 5 (windowing). Then looking atone of these scripts, say
/etc/init.d/cups
shows the location of the binary which it starts at boot time
/usr/sbin/cupsd
And if you don't know that that does,
Code: Select all
man cupsd

tells you that it handles printing.

Actually there are probably some more daemons in /etc/rcS.d

The basic runlevels are
  • 0: shutdown
  • 1: single user (root) or "console mode" or "repair mode"
  • 5: multiuser with windowing: what you probably get when you boot up
  • 6: reboot

Next, in a shell
Code: Select all
su
netstat -pn -l -A inet && lsof -i | grep LISTEN

(you'll be prompted for root password) will show which of these daemons are listening on which ports.
Ahtiga Saraz

Le peuple debout contre les tyrans! De l'audace, encore de l'audace, toujours l'audace!
Ahtiga Saraz
 
Posts: 1015
Joined: 2009-06-15 01:19

Re: Serves starting at start up Debian?

Postby smallchange » 2010-02-01 04:55

In Debian the default runlevel is 2. You can see this by looking in /etc/inittab. X is not started depending on the runlevel as in some other distributions, but depending on whether or not a display manager is installed. It is possible to alter any of runlevels 2-5 to set them to run without X, but that is not the default.

Listing the files in /etc/rc2.d will give you some idea of what is running, but some things are started from /etc/rcS.d.
smallchange
 
Posts: 1740
Joined: 2009-05-04 15:56


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable