Remove reload via cli and just restart the service

This commit is contained in:
Chris Roberts 2017-05-09 09:13:40 -07:00
parent 39606e833f
commit a16b6f84e3
1 changed files with 1 additions and 2 deletions

View File

@ -74,8 +74,7 @@ module VagrantPlugins
end
end
if nmcli_installed
commands[:middle] << "((nmcli c help 2>&1 | grep reload) && nmcli c reload) || " \
"(test -f /etc/init.d/NetworkManager && /etc/init.d/NetworkManager restart) || " \
commands[:middle] << "(test -f /etc/init.d/NetworkManager && /etc/init.d/NetworkManager restart) || " \
"((systemctl | grep NetworkManager.service) && systemctl restart NetworkManager)"
end
commands = commands[:start] + commands[:middle] + commands[:end]