34 #include "plat_power.h"
38 #include <sys/types.h>
41 #include "pwrlogger.h"
43 #ifdef ENABLE_SD_NOTIFY
44 #include <systemd/sd-daemon.h>
47 #ifdef RDK_LOGGER_ENABLED
49 int b_rdk_logger_enabled = 0;
51 void logCallback(
const char *buff)
56 int main(
int argc,
char *argv[])
58 const char* debugConfigFile = NULL;
63 if(strcmp(argv[itr],
"--debugconfig")==0)
68 debugConfigFile = argv[itr];
78 #ifdef RDK_LOGGER_ENABLED
81 IARM_Bus_RegisterForLog(logCallback);
85 PWRMgr_Start(argc, argv);
86 #ifdef ENABLE_SD_NOTIFY
87 sd_notifyf(0,
"READY=1\n"
88 "STATUS=PWRMgr is Successfully Initialized\n"
89 "MAINPID=%lu", (
unsigned long) getpid());