34 #include <sys/types.h>
36 #include "plat_power.h"
42 #include "deepSleepMgr.h"
43 #include "deepsleeplogger.h"
44 #include "deepSleepInternal.h"
45 #ifdef RDK_LOGGER_ENABLED
47 int b_rdk_logger_enabled = 0;
49 void logCallback(
const char *buff)
55 #ifdef ENABLE_SD_NOTIFY
56 #include <systemd/sd-daemon.h>
60 int main(
int argc,
char *argv[])
62 const char* debugConfigFile = NULL;
67 if(strcmp(argv[itr],
"--debugconfig")==0)
72 debugConfigFile = argv[itr];
82 #ifdef RDK_LOGGER_ENABLED
85 IARM_Bus_RegisterForLog(logCallback);
90 DeepSleepMgr_Start(argc, argv);
92 #ifdef ENABLE_SD_NOTIFY
93 sd_notifyf(0,
"READY=1\n"
94 "STATUS=DeepSleepMgr is Successfully Initialized\n"
95 "MAINPID=%lu", (
unsigned long) getpid());