diff --git a/plugins/guests/redhat/cap/change_host_name.rb b/plugins/guests/redhat/cap/change_host_name.rb index 37c8912a8..5ceb63665 100644 --- a/plugins/guests/redhat/cap/change_host_name.rb +++ b/plugins/guests/redhat/cap/change_host_name.rb @@ -31,7 +31,7 @@ module VagrantPlugins restart_command = "service network restart" - if systemd? + if systemd?(comm) if systemd_networkd?(comm) restart_command = "systemctl restart systemd-networkd.service" elsif systemd_controlled?(comm, "NetworkManager.service")