Ubuntu upstart scripts executed twice during boot

As I am continuing my efforts to improve Ubuntu boot time [1] I started noticing that bootchart [2] would list several processes twice and the boot logs would complain that all mountpoints were busy or had been mounted already.

A closer inspection of the logs reveals that indeed several scripts were being executed twice: the console setup, pulseaudio and the mountall daemon.

It turns out that upstart is executing any scripts in the subtree of /etc/init and thus also the obsolete scripts which I parked in /etc/init/bak, while the correct way to disable them is to either delete them or rename them to a different file suffix than .conf which, incidentally, also solved the problem.

Resources

[1]  Speeding up Ubuntu 11.04 boot time
http://georgovassilis.blogspot.com/2011/05/speeding-up-ubuntu-1104-boot-time.html 

[2] Bootchart
http://www.bootchart.org/

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