[09:22] <tcr> Let's say I'm polling for the existence of a file in a pre-start script. When I try to stop the job when it's polling, it changes to stop/pre-start. I want it to stop doing the polling if it receives a stop event.
[13:07] <jodh> tcr: hmm - that doesn't sound right. Can you raise a bug with some more details here: https://bugs.launchpad.net/upstart/+filebug. To work around the issue, you could put  your poll code into the main "script" section. Polling for files isn't ideal though - what is creating that file?
[13:16] <tcr> A configuration process. The file should always be there except before first time configuration
[13:18] <jodh> tcr: why the poll then? wouldn't it make more sense to have the pre-start check for the config file and if not found, call "stop" to ensure the service does not start?
[13:22] <tcr> I want the service to start once the file is there
[13:28] <JanC> probably best use something like inotify in a helper job then