Hopefully only restart hostname service when necessary.