Edgy sans inittab

Things have moved around a bit since the new Upstart system took over. It took me a while to find things too, so don’t feel bad if you’re missing the good old days of inittab.

For the time being, just remember: The tty setup is now in /etc/event.d, and each tty has its own separate file. If you’re inserting an autologin script, you’ll need to tamper with that file accordingly. All right, all right, I’ll just tell you what to put in there.

Assuming you’ve compiled the autologin executable and put it into your /usr/local/sbin/ folder, this is what should go into your /etc/event.d/tty1 file.

# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on runlevel-2
start on runlevel-3
start on runlevel-4
start on runlevel-5

stop on shutdown

respawn /sbin/getty -n -l /usr/local/sbin/autologin 38400 tty1

And if you’re looking for services to abandon at startup or shutdown, look inside /etc/rc0.d, /etc/rc1.d, etc. That’s where you’ll find folders for each runlevel. Rename your unwanted services to start with a lowercase k (instead of an uppercase K), and you’ll be a happy camper again.

That’s all for now. If you want any more, you’ll have to sing it yourself. … ;)

About these ads

2 thoughts on “Edgy sans inittab

  1. Hari Sundararajan

    Thanks for the getty tip .. I was getting pretty frustrated seeing 6 getty login terminals open up on boot time, and not finding the inittab to remove it.

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s