<div dir="ltr"><div><div><div>Thanks for the link Craig.<br></div>The description on the site is confusing.<br></div>I prefer the official one<br><a href="https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man5/launchd.plist.5.html" target="_blank">https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man5/launchd.plist.5.html</a><br>
<br></div>but as macports startupitem doesn't support this key, it means including plist in Port's files which is already the case for cron like task.<br><div><div><div><div><div><div class="gmail_extra"><br><br>
<div class="gmail_quote">
2014-04-17 10:42 GMT-04:00 Craig Treleaven <span dir="ltr"><<a href="mailto:ctreleaven@cogeco.ca" target="_blank">ctreleaven@cogeco.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>At 10:22 AM -0400 4/17/14, Julien T wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Another question, is there any wait for a launchd plist or macports startupitem to specify dependency to run? for example, an application depending on its database.<br>
</blockquote>
<br></div>
Quick note...I found the following site useful:<br>
<br>
<a href="http://launchd.info/" target="_blank">http://launchd.info/</a><br>
<br>
Regarding dependencies, see the tab "Configuration" and the explanation of "OtherJobEnabled" (which is pretty poorly named for what it really does) and "NetworkState". One of them may get you close enough. Really, though, Apple expects these processes to be well-behaved and do their own checking/waiting for the conditions they need to be able to run.<span><font color="#888888"><br>
<br>
Craig<br>
</font></span></blockquote></div><br></div></div></div></div></div></div></div>