On 21/01/2015 18:16, Olivier Brunel wrote:
So in the doc you mention how "format and contents of this file are subject to change"; not to be a PITA but in that case I think it would be a good idea to have functions to read (and write?) that file in libs6, similar to what is available for the statusfile. So if external tool wanted to use/read the ready file, they could do it (properly).
Yeah, I thought about it, but right now I just wanted to have something working. I don't think the format is going to change too much, I simply didn't want to hard commit to not changing it; I'm not planning to add more stuff to the ready file, unless it's reaaaaally related to the service being ready, not only up. If/when the ready file format changes, I'll provide a clean API around it. For now, consider that the presence/absence of the file is the API, and s6-svstat is the API if you want the notion of time. -- Laurent
