static void ThisAgentInit(EvalContext *ctx) { umask(077); sprintf(VPREFIX, "cf-monitord"); SetReferenceTime(ctx, false); SetStartTime(); signal(SIGINT, HandleSignalsForDaemon); signal(SIGTERM, HandleSignalsForDaemon); signal(SIGHUP, SIG_IGN); signal(SIGPIPE, SIG_IGN); signal(SIGUSR1, HandleSignalsForDaemon); signal(SIGUSR2, HandleSignalsForDaemon); FORGETRATE = 0.6; MonitorInitialize(); }
static void ThisAgentInit(EvalContext *ctx) { umask(077); strcpy(VPREFIX, "cf-monitord"); time_t t = SetReferenceTime(); UpdateTimeClasses(ctx, t); signal(SIGINT, HandleSignalsForDaemon); signal(SIGTERM, HandleSignalsForDaemon); signal(SIGHUP, SIG_IGN); signal(SIGPIPE, SIG_IGN); signal(SIGUSR1, HandleSignalsForDaemon); signal(SIGUSR2, HandleSignalsForDaemon); FORGETRATE = 0.6; MonitorInitialize(); }