Gentoo Archives: gentoo-user

From: Uwe Thiem <uwix@××××.na>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Reducing agetty processes
Date: Wed, 13 Dec 2006 19:09:51
Message-Id: 200612132057.58001.uwix@iway.na
In Reply to: [gentoo-user] Reducing agetty processes by Grant
1 On 13 December 2006 18:02, Grant wrote:
2 > I seem to have 6 agetty processes running on my system, but I'm the
3 > only one who ever logs into my server. How can I reduce the number of
4 > running agetty processes?
5
6 Those are the getties sitting on your virtual consoles F1 - F6 and let you log
7 in on text consoles if you wish so. They are defined in /etc/inittab:
8
9 # TERMINALS
10 c1:12345:respawn:/sbin/agetty 38400 tty1 linux
11 c2:2345:respawn:/sbin/agetty 38400 tty2 linux
12 c3:2345:respawn:/sbin/agetty 38400 tty3 linux
13 c4:2345:respawn:/sbin/agetty 38400 tty4 linux
14 c5:2345:respawn:/sbin/agetty 38400 tty5 linux
15 c6:2345:respawn:/sbin/agetty 38400 tty6 linux
16
17 Just delete any of these lines you don't need (and reboot or do a "telinit
18 q").
19
20 Be aware of four things:
21
22 1.
23 If you delete all of those line above you won't be able to log in on a text
24 console at all which is extremely inconvenient if X fails for whatever
25 reason.
26
27 2.
28 Those agetty processes don't really use any of your resources. It's hardly
29 worth it to get rid of them. ;-)
30
31 3.
32 Next time your /etc/inittab is updated by etc-update after a update world,
33 your changes are lost.
34
35 4.
36 If you delete the first line starting with "c1" and your system *needs* to
37 boot into single user mode (no graphics there) because your filesystem is
38 corrupt beyond automatic repair (or some other reason), it won't be able to.
39 =8-O
40
41 Uwe
42
43 --
44 Mark Twain: I rather decline two drinks than a German adjective.
45 http://www.SysEx.com.na
46 --
47 gentoo-user@g.o mailing list