Only restart network service if hostname has changed