Okay, after reading the Daemon Behavior section of the Upstart cookbook (http://upstart.ubuntu.com/cookbook/#daemon-behaviour), I've settled on a solution that I'm reasonably happy with: looping in a post-start script until the ticket cache is detected on the file system _or_ a timeout occurs (so we don't stall the job start process indefinitely)
Patch is attached. Contains the updated logic, as well as miscellaneous edits for clarity.
Okay, after reading the Daemon Behavior section of the Upstart cookbook (http:// upstart. ubuntu. com/cookbook/ #daemon- behaviour), I've settled on a solution that I'm reasonably happy with: looping in a post-start script until the ticket cache is detected on the file system _or_ a timeout occurs (so we don't stall the job start process indefinitely)
Patch is attached. Contains the updated logic, as well as miscellaneous edits for clarity.