Fix for ypbind errors in OS X
OS X 10.5 Leopard is showing these errors every ten seconds:
] com.apple.nis.ypbind[]: Domainname not set. Aborting.
] com.apple.launchd[1] (com.apple.nis.ypbind[]): Exited with exit code: 1
] rasalas-pro com.apple.launchd[] (com.apple.nis.ypbind): Throttling respawn: Will start in 10 seconds
I fixed it as follows:
Since ypbind is not used by OS X in 99.9% of installations, just turn it off.
Edit the ypbind start-up definition
sudo vi /System/Library/LaunchDaemons/com.apple.nis.ypbind.plist
and change
<true/>
to
<false/>
Then shutdown the service
sudo service com.apple.nis.ypbind stop
I'm expecting that the "false" will keep it from restarting on reboot, but not quite sure about that.
Also, for future reference
sudo service --list
will show all the 'services'...
