lsof -nYou can also use the-c option to constrain output to a specific string. The kill command can then use the lsof command to kill all those processes, as follows:
kill -HUP $(lsof -n -c /tty/i -t)Free your files…
krypted June 26th, 2015
changeip -checkhostnameHowever the error recurs no matter what you do, even if you try and change the name of the Open Directory Master or the address you still usually end up seeing the same error. If it isn’t the address or the name then could it be the port? If you run lsof to see about that whole ldap port:
lsof -i | grep ldapThen you’ll end up seeing something like a mail server or third party tool taking 389 first. So, the error should probably read “port already in use” rather than “address already in use.” Disable ldap or move ldap to some other port with the other service, or spin up a new IP and move ldap to that IP for the other service and re-promote and viola, you’re golden. Good luck!
krypted September 8th, 2013
Posted In: Mac OS X Server
krypted December 22nd, 2007