Linux.com

Ubuntu's Upstart event-based init daemon

Posted by: Anonymous [ip: 193.108.203.150] on February 11, 2008 04:22 PM
It seems like many people seem to have difficulties understanding the benefits with Upstart. Here's what I did, with no previous experience, with Upstart that would not be possible otherwise (I use a very customized VM environment that is not gnome, xfce nor kde):

I created an event rule that basicly does this:
When any USB key is inserted, pull information from the key. Create directory /media/usbkey-MODELNAME (where MODELNAME is taken from the usb device info)
Mount the usb key into the newly created directory.
Create a symlink on the ~/Desktop to the directory.

When the usbkey is unmounted, reverse the process.

#

Return to Ubuntu's Upstart event-based init daemon