Deferring jobs for later
Svein Seldal
sveinse at seldal.com
Fri Mar 9 12:32:10 UTC 2012
I have a script which should be executed when a certain USB device is
inserted into the machine. This script is handled by a udev rule.
However, this script is often run too early (no writable fs yet) if the
USB device is left inserted when booting the system. Is there a way I
can defer this script with the aid of upstart until the system is system
is up?
What about:
udev rule: initctl emit device_inserted
upstart task:
start on device_inserted and stopped rc
^^ Would this work? I mean since the device_inserted emit will come much
before rc has stopped? I'm uncertain how the combining of events such as
these actually behave.
Regards,
Svein Seldal
More information about the upstart-devel
mailing list