On 13 December 2006 18:02, Grant wrote:
> I seem to have 6 agetty processes running on my system, but I'm the
> only one who ever logs into my server.  How can I reduce the number of
> running agetty processes?

Those are the getties sitting on your virtual consoles F1 - F6 and let you log 
in on text consoles if you wish so. They are defined in /etc/inittab:

# TERMINALS
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linux

Just delete any of these lines you don't need (and reboot or do a "telinit 
q").

Be aware of four things:

1.
If you delete all of those line above you won't be able to log in on a text 
console at all which is extremely inconvenient if X fails for whatever 
reason.

2.
Those agetty processes don't really use any of your resources. It's hardly 
worth it to get rid of them. ;-)

3.
Next time your /etc/inittab is updated by etc-update after a update world, 
your changes are lost.

4.
If you delete the first line starting with "c1" and your system *needs* to 
boot into single user mode (no graphics there) because your filesystem is 
corrupt beyond automatic repair (or some other reason), it won't be able to. 
=8-O

Uwe

-- 
Mark Twain: I rather decline two drinks than a German adjective.
http://www.SysEx.com.na
-- 
gentoo-user@gentoo.org mailing list

Reply via email to