Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Serves starting at start up Debian?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
miros84
Posts: 221
Joined: 2009-08-06 07:22

Serves starting at start up Debian?

#1 Post by miros84 »

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?

User avatar
Absent Minded
Posts: 3464
Joined: 2006-07-09 08:50
Location: Washington State U.S.A.
Been thanked: 3 times

Re: Serves starting at start up Debian?

#2 Post by Absent Minded »

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
izar
Posts: 1714
Joined: 2007-01-01 18:34
Location: Euskal Herria

Re: Serves starting at start up Debian?

#3 Post by izar »

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.

Ahtiga Saraz
Posts: 1014
Joined: 2009-06-15 01:19

Services started at boot time by Debian

#4 Post by Ahtiga Saraz »

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!

smallchange
Posts: 1740
Joined: 2009-05-04 15:56
Been thanked: 1 time

Re: Serves starting at start up Debian?

#5 Post by smallchange »

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.

Post Reply