[launchd-dev] Run job when network configuration changes

Quinn eskimo1 at apple.com
Thu Dec 6 01:23:44 PST 2007


At 1:57 -0500 6/12/07, Edward R. Marczak wrote:
>How about /Library/Preferences/SystemConfiguration/preferences.plist

That changes when the network /preferences/ change, not when the 
network state changes.  For example, if someone plugs or unplugs the 
Ethernet, this file won't change.

What /does/ change is the System Configuration framework "dynamic 
store".  However, I don't know of any good way to hook into the 
dynamic store from a script.  OTOH, it's trivial to do this from C 
code.

S+E
-- 
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


More information about the launchd-dev mailing list