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. | 09:22 |
---|---|---|
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:07 |
tcr | A configuration process. The file should always be there except before first time configuration | 13:16 |
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:18 |
tcr | I want the service to start once the file is there | 13:22 |
JanC | probably best use something like inotify in a helper job then | 13:28 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!