only restart network service if hostname has changed