[launchd-dev] launchd - how to specify daemon needs to wait for network to start?

Jim Correia jim.correia at pobox.com
Tue Apr 22 09:07:02 PDT 2008


On Apr 22, 2008, at 11:55 AM, Dave Zarzycki wrote:

> The correct way is to modify the p4d to utilize the  
> SystemConfiguration framework that Apple provides. That will let a  
> developer monitor all forms of network state transitions. If that is  
> temporarily impractical, one can wrap the invocation of p4d with a  
> shell script:
>
> #!/bin/sh
>
> # ipconfig "waitall" might go away in a future release.
> # we really need p4d to adopt the SystemConfiguration framework
> /usr/sbin/ipconfig waitall
>
> exec /usr/local/bin/p4d

Thanks Dave, that solves the problem.

Modifying p4d is impractical since it is closed source commercial  
software that we license. I'm currently on an older release. If the  
current release has the same issue, I'll log an enhancement request  
with Perforce.

Jim



More information about the launchd-dev mailing list