|
|
|
|
@ -292,8 +292,8 @@ void MainWindow::stop_ntp(){
|
|
|
|
|
windowsNnpClose->hide();
|
|
|
|
|
string cmd = "";
|
|
|
|
|
string response = "";
|
|
|
|
|
string array_servis[8] = {"systemd-timesyncd", "chronyd", "ntp.service", "ntpdate.service",
|
|
|
|
|
"ntpd", "ptp4l", "openntpd.service", "phc2sys"};
|
|
|
|
|
string array_servis[8] = {"systemd-timesyncd", "chronyd.service", "ntp.service", "ntpdate.service",
|
|
|
|
|
"ntpd.service", "ptp4l.service", "openntpd.service", "phc2sys.service"};
|
|
|
|
|
for (string &name_serive: array_servis){
|
|
|
|
|
cmd = "systemctl status " + name_serive + " | grep \"Active: active\"";
|
|
|
|
|
response = this->call(cmd.c_str());
|
|
|
|
|
|