From 3f1d5c51df561046f6d07584cdb3d265f38fcc55 Mon Sep 17 00:00:00 2001 From: sindhu-krishnan <102755514+sindhu-krishnan@users.noreply.github.com> Date: Tue, 30 Sep 2025 05:26:01 +0530 Subject: [PATCH 1/3] Update systimemgr.cpp --- systimemgr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/systimemgr.cpp b/systimemgr.cpp index 8e72fd0f..b48a0958 100644 --- a/systimemgr.cpp +++ b/systimemgr.cpp @@ -627,6 +627,8 @@ void SysTimeMgr::deepsleepoff() publishStatus(ePUBLISH_DEEP_SLEEP_ON,std::move(message)); //Turn on the NTP time sync. + 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"); } From 184c8a078d08158ed959a82cb141789961352f54 Mon Sep 17 00:00:00 2001 From: sindhu-krishnan <102755514+sindhu-krishnan@users.noreply.github.com> Date: Tue, 30 Sep 2025 11:34:15 +0530 Subject: [PATCH 2/3] Update systimemgr.cpp --- systimemgr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/systimemgr.cpp b/systimemgr.cpp index b48a0958..58bd7009 100644 --- a/systimemgr.cpp +++ b/systimemgr.cpp @@ -627,6 +627,8 @@ void SysTimeMgr::deepsleepoff() publishStatus(ePUBLISH_DEEP_SLEEP_ON,std::move(message)); //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"); From 6d99db6e7378b3d7d1f0fb2a851560b42babd20f Mon Sep 17 00:00:00 2001 From: sindhu-krishnan <102755514+sindhu-krishnan@users.noreply.github.com> Date: Tue, 30 Sep 2025 13:09:52 +0530 Subject: [PATCH 3/3] Update systimemgr.cpp --- systimemgr.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/systimemgr.cpp b/systimemgr.cpp index 58bd7009..96d01146 100644 --- a/systimemgr.cpp +++ b/systimemgr.cpp @@ -626,6 +626,12 @@ 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");