inittab, telinit, and Ubuntu

Sorry about this, but I’m going to use a blog post as my personal note pad once again.

Every time my colo box reboots, I need to restart some stuff that automatically restarts on my home box, mostly ssh tunnels. In the old days, I’d use “kill -1 1” or “telinit -q” depending on how traditional I was feeling. That tells init(1) to re-read /etc/inittab and kill any of its daemons that isn’t in the file any more and start anything that’s in the file that isn’t running.

But Ubuntu has replaced the old inittab with files in /etc/event.d. And now, you restart those with a much simpler (but much harder for me to remember when I need to) “sudo start ssh_tunnel”. One of these days I’ll remember that.