Unloading and reloading the discoveryd service seems to keep network connectivity for a few hours or so. Can someone write an AppleScript that refreshes the discoverd service by unloading and reloading it periodically, let's say every 120 minutes or so? I have a MacMini as a media server, always on, that is dropping network connectivity constantly and would benefit from this until Apple comes out with a proper fix. The reocurring script would go something like:
1. open Terminal
2. enter the following command (to unload discoverd):
4. enter the following command (to reload discoverd):
6. close Terminal
Many thanks in advance!
1. open Terminal
2. enter the following command (to unload discoverd):
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
3. Hit return and enter admin password (to use the sudo command)4. enter the following command (to reload discoverd):
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
5. Hit return to finish the command6. close Terminal
Many thanks in advance!