It seem that this is one of the biggest issues I deal with. LaunchAgents and LaunchDaemons that launch before the network service is up or so it appears. We have lots of these that depend on the network being up. In one particular case, we have a script executed via casper policy when a user logs in. This script mounts a few different network shares. The machines that are scoped in this policy are 30 mac minis that are part of a render farm. We have these 30 machines login automatically with a service account.
These machines boot with SSDs, so they are crazy fast. Probably adding to the issue. When the jamf launchagent runs, the JSS and the network resources cannot be reached because the network service is not yet up on the client. Is anyone else dealing with a similar thing? Could there be a way to way to delay the launchagent until the network is up? Maybe make this a toggable field? I'm sure I'd introduce new problems doing so. For now I'm left to create an offline policy that delays all other policies.
Here is what apple says about the issue:
Network Availability
If your daemon depends on the network being available, this cannot be handled with dependencies because network interfaces can come and go at any time in OS X. To solve this problem, you should use the network reachability functionality or the dynamic store functionality in the System Configuration framework. This is documented in System Configuration Programming Guidelines and System Configuration Framework Reference. For more information about network reachability, see “Determining Reachability and Getting Connected” in System Configuration Programming Guidelines.
thanks.
mark