Xen + Ubuntu - disabling tty2 getty respawning

New Xen host. Inittab respawns tty2, tty3, tty4, tty5, tty6 - all consoles which don't really exist on the domU.

Ubuntu doesn't use the inittab entries (maybe it does for some boot processes), but rather a series of files in /etc/event.d to respawn the getty entries.

Without disabling these entries, you'll end up with a /var/log/syslog looking like this:

Mar 27 06:25:12 xmm2 init: tty5 process (8557) terminated with status 1
Mar 27 06:25:12 xmm2 init: tty5 process ended, respawning
Mar 27 06:25:12 xmm2 init: tty4 process (8558) terminated with status 1
Mar 27 06:25:12 xmm2 init: tty4 process ended, respawning
Mar 27 06:25:18 xmm2 init: tty3 process (8617) terminated with status 1
Mar 27 06:25:18 xmm2 init: tty3 process ended, respawning
Mar 27 06:25:19 xmm2 init: tty2 process (8664) terminated with status 1
Mar 27 06:25:19 xmm2 init: tty2 process ended, respawning
Mar 27 06:25:19 xmm2 init: tty6 process (8665) terminated with status 1
Mar 27 06:25:19 xmm2 init: tty6 process ended, respawning
Mar 27 06:25:22 xmm2 init: tty5 process (8691) terminated with status 1
Mar 27 06:25:22 xmm2 init: tty5 process ended, respawning
Mar 27 06:25:23 xmm2 init: tty4 process (8692) terminated with status 1
Mar 27 06:25:23 xmm2 init: tty4 process ended, respawning
Mar 27 06:25:28 xmm2 init: tty3 process (8693) terminated with status 1
Mar 27 06:25:28 xmm2 init: tty3 process ended, respawning

To disable them, remove the files /etc/event.d/tty[2-6] and reboot.

rm /etc/event.d/tty[23456]

(You need to be root to do that, of course.)

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <code> <br> <h2> <h3> <h4> <h5> <h6>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.