|
|
|
@ -280,15 +280,6 @@ void MainWindow::wind_close_ntp(){
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::stop_ntp(){
|
|
|
|
void MainWindow::stop_ntp(){
|
|
|
|
windowsNnpClose->hide();
|
|
|
|
windowsNnpClose->hide();
|
|
|
|
/*
|
|
|
|
|
|
|
|
// string cmd = "systemd-timesyncd [[ systemctl --quiet is-active systemd-timesyncd &>/dev/null ]] && systemctl stop systemd-timesyncd";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string cmd = "sudo systemctl stop systemd-timesyncd; " ;
|
|
|
|
|
|
|
|
cmd += "sudo systemctl stop ntp.service; sudo systemctl stop ntpdate.service; ";
|
|
|
|
|
|
|
|
cmd += "sudo systemctl stop chronyd; sudo service ntpd stop; sudo systemctl stop ptp4l; ";
|
|
|
|
|
|
|
|
cmd += "sudo systemctl stop openntpd.service; sudo timedatectl set-ntp false";
|
|
|
|
|
|
|
|
cmd += "sudo systemctl stop phc2sys";
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
string cmd = "";
|
|
|
|
string cmd = "";
|
|
|
|
string response = "";
|
|
|
|
string response = "";
|
|
|
|
string array_servis[8] = {"systemd-timesyncd", "chronyd", "ntp.service", "ntpdate.service",
|
|
|
|
string array_servis[8] = {"systemd-timesyncd", "chronyd", "ntp.service", "ntpdate.service",
|
|
|
|
|