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 Responses to “Edgy sans inittab”


  1. 1 Hari Sundararajan 2006/12/14 at 11:44 PM

    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.

  2. 2 Riddla 2006/12/30 at 10:44 PM

    Thanks man, exactly what I was lookin for!


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




Welcome!



Visit the Wiki!

Some recent desktops


May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF
 


May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games


Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers

License

This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,963,663 hits

Archives


Follow

Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: