Skip to content

Commit 4d2d9fd

Browse files
authored
Update MaintenanceManager.cpp (rdkcentral#6317)
1 parent 9a429cd commit 4d2d9fd

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

MaintenanceManager/MaintenanceManager.cpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ using namespace std;
6969

7070
#define PROC_DIR "/proc"
7171
#define RDK_PATH "/lib/rdk/"
72+
#define BIN_PATH "/usr/bin/"
7273

7374
#define MAINTENANCE_MANAGER_RFC_CALLER_ID "MaintenanceManager"
7475
#define TR181_AUTOREBOOT_ENABLE "Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.AutoReboot.Enable"
@@ -81,7 +82,7 @@ using namespace std;
8182
#define TR181_XCONFURL "Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Bootstrap.XconfUrl"
8283
#endif
8384

84-
#define RFC_TASK RDK_PATH "Start_RFC.sh"
85+
#define RFC_TASK BIN_PATH "rfcMgr"
8586
#define SWUPDATE_TASK RDK_PATH "swupdate_utility.sh"
8687
#define LOGUPLOAD_TASK RDK_PATH "Start_uploadSTBLogs.sh"
8788

@@ -272,7 +273,7 @@ namespace WPEFramework
272273
bool MaintenanceManager::g_task_timerCreated = false;
273274

274275
string task_names_foreground[] = {
275-
"/lib/rdk/Start_RFC.sh",
276+
"/usr/bin/rfcMgr >> /opt/logs/rfcscript.log",
276277
"/lib/rdk/swupdate_utility.sh",
277278
"/lib/rdk/Start_uploadSTBLogs.sh"
278279
};
@@ -292,7 +293,7 @@ namespace WPEFramework
292293
};
293294

294295
string task_names[]={
295-
"RFCbase.sh",
296+
"rfcMgr",
296297
"swupdate_utility.sh",
297298
"uploadSTBLogs.sh"
298299
};
@@ -1049,14 +1050,14 @@ namespace WPEFramework
10491050
MM_LOGINFO("Starting Critical Tasks...");
10501051
int rfc_task_status = -1;
10511052
int xconf_imagecheck_status = -1;
1052-
1053-
MM_LOGINFO("Starting /lib/rdk/Start_RFC.sh");
1054-
rfc_task_status = system("/lib/rdk/Start_RFC.sh &");
1053+
1054+
MM_LOGINFO("Starting /usr/bin/rfcMgr");
1055+
rfc_task_status = system("/usr/bin/rfcMgr >> /opt/logs/rfcscript.log &");
10551056
if (rfc_task_status != 0)
10561057
{
1057-
MM_LOGINFO("Failed to run Start_RFC.sh with %d", WEXITSTATUS(rfc_task_status));
1058-
}
1059-
1058+
MM_LOGINFO("Failed to run rfcMgr with %d", WEXITSTATUS(rfc_task_status));
1059+
}
1060+
10601061
MM_LOGINFO("Starting /lib/rdk/xconfImageCheck.sh");
10611062
xconf_imagecheck_status = system("/lib/rdk/xconfImageCheck.sh &");
10621063
if (xconf_imagecheck_status != 0)

0 commit comments

Comments
 (0)