Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions systimemgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,17 @@ void SysTimeMgr::deepsleepoff()

publishStatus(ePUBLISH_DEEP_SLEEP_ON,std::move(message));

if (remove("/tmp/systimemgr/ntp") == 0) {
RDK_LOG(RDK_LOG_INFO,LOG_SYSTIME,"[%s:%d]:Successfully removed /tmp/systimemgr/ntp file.\n",__FUNCTION__,__LINE__);
} else {
RDK_LOG(RDK_LOG_WARN,LOG_SYSTIME,"[%s:%d]:/tmp/systimemgr/ntp file does not exist or could not be removed.\n",__FUNCTION__,__LINE__);
}

//Turn on the NTP time sync.
v_secure_system("/bin/systemctl reset-failed ntp-metrics-collector.service");
v_secure_system("/bin/systemctl restart ntp-metrics-collector.service");
v_secure_system("/bin/systemctl reset-failed ntp-pcap-collector.service");
v_secure_system("/bin/systemctl restart ntp-pcap-collector.service");
v_secure_system("/bin/systemctl reset-failed systemd-timesyncd.service");
v_secure_system("/bin/systemctl restart systemd-timesyncd.service");
}
Expand Down
Loading