34 #ifdef ENABLE_SD_NOTIFY
35 #include <systemd/sd-daemon.h>
40 #include "safec_lib.h"
42 #ifdef RDK_LOGGER_ENABLED
43 int b_rdk_logger_enabled = 0;
45 void logCallback(
const char *buff)
52 int main(
int argc,
char *argv[])
54 const char* debugConfigFile = NULL;
56 errno_t safec_rc = -1;
58 int debug_len = strlen(
"--debugconfig");
62 safec_rc = strcmp_s(
"--debugconfig", debug_len, argv[itr], &ind);
64 if ((!ind) && (safec_rc == EOK))
69 debugConfigFile = argv[itr];
79 #ifdef RDK_LOGGER_ENABLED
82 IARM_Bus_RegisterForLog(logCallback);
89 #ifdef ENABLE_SD_NOTIFY
90 sd_notifyf(0,
"READY=1\n"
91 "STATUS=mfrMgrMain is Successfully Initialized\n"
93 (
unsigned long) getpid());