How to tell upstart the number of ttys to start?

Asked by rkat

Running Ubuntu 7.04 (with upstart) as guest in a UML (user mode kernel) system, it gives me 6 terminals (6 xterms appear).
How can I reduce this (to 2)? (In system V, one commented the unwanted getty lines in inittab. But after some research, I still couldn't find out how to do this with upstart.)

Question information

Language:
English Edit question
Status:
Solved
For:
upstart Edit question
Assignee:
No assignee Edit question
Solved by:
Scott James Remnant (Canonical)
Solved:
Last query:
Last reply:
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) said :
#1

Remove the /etc/event.d files you do not want, e.g. rm /etc/event.d/tty[3456] to remove 3 thru 6

Revision history for this message
rkat (rkat1) said :
#2

Thanks for the fast reply!
Unfortunately, this is not enough (tried that before, sorry didn't mention it because I thought I was wrong in assuming it might be so easy).

The xterm windows 3-6 (uml virtual consoles) are still created. Missing the removed /etc/event.d/tty[3456], they do not have a login prompt, which is ok. So it seems to me there must be some else configuration that creates the 6 ttys. Just tested my uml kernel with Ubuntu 6.06 as uml guest and inittab tty disabling works. So at least it's not the kernel.

Revision history for this message
Best Scott James Remnant (Canonical) (canonical-scott) said :
#3

You'll always have at least 8 actual VTs, since that's the way the software is configured. (usplash uses VT8 and X uses VT7)

Revision history for this message
rkat (rkat1) said :
#4

Thanks Scott James Remnant, that solved my question.

Revision history for this message
Kevin Shelton (kmshelton) said :
#5

Why can deallocvt not be used here?

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) said :
#6

It could, but that's a question for usplash or X ... not Upstart

Revision history for this message
Tom Spink (tspink) said :
#7

You can change the ACTIVE_CONSOLES setting in the /etc/default/console-setup file to activate specific VTs, if you also remove the appropriate tty startup files from /etc/event.d.