openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/runtime/rsconf.c
static rsRetVal activate(rsconf_t* cnf)
{
    DEFiRet;

    /* at this point, we "switch" over to the running conf */
    runConf = cnf;
#if 0 /* currently the DAG is not supported -- code missing! */
	/* TODO: re-enable this functionality some time later! */
	/* check if we need to generate a config DAG and, if so, do that */
	if(ourConf->globals.pszConfDAGFile != NULL)
		generateConfigDAG(ourConf->globals.pszConfDAGFile);
#endif
    setUmask(cnf->globals.umask);

    /* the output part and the queue is now ready to run. So it is a good time
     * to initialize the inputs. Please note that the net code above should be
     * shuffled to down here once we have everything in input modules.
     * rgerhards, 2007-12-14
     * NOTE: as of 2009-06-29, the input modules are initialized, but not yet
     * run. Keep in mind. though, that the outputs already run if the queue was
     * persisted to disk. -- rgerhards
     */
    tellModulesActivateConfigPrePrivDrop();

    CHKiRet(dropPrivileges(cnf));

    tellModulesActivateConfig();
    startInputModules();
    CHKiRet(activateActions());
    CHKiRet(activateRulesetQueues());
    CHKiRet(activateMainQueue());
    /* finally let the inputs run... */
    runInputModules();

    dbgprintf("configuration %p activated\n", cnf);

finalize_it:
    RETiRet;
}
/* Activate an already-loaded configuration. The configuration will become
 * the new running conf (if successful). Note that in theory this method may
 * be called when there already is a running conf. In practice, the current
 * version of rsyslog does not support this. Future versions probably will.
 * Begun 2011-04-20, rgerhards
 */
Activate an already-loaded configuration. The configuration will become
the new running conf (if successful). Note that in theory this method may
be called when there already is a running conf. In practice, the current
version of rsyslog does not support this. Future versions probably will.
Activate an already - loaded configuration . The configuration will become the new running conf ( if successful ) . Note that in theory this method may be called when there already is a running conf . In practice the current version of rsyslog does not support this . Future versions probably will .
static rsRetVal activate(rsconf_t* cnf)
{
    DEFiRet;
    runConf = cnf;
#if 0 
	if(ourConf->globals.pszConfDAGFile != NULL)
		generateConfigDAG(ourConf->globals.pszConfDAGFile);
#endif
    setUmask(cnf->globals.umask);
    tellModulesActivateConfigPrePrivDrop();
    CHKiRet(dropPrivileges(cnf));
    tellModulesActivateConfig();
    startInputModules();
    CHKiRet(activateActions());
    CHKiRet(activateRulesetQueues());
    CHKiRet(activateMainQueue());
    runInputModules();
    dbgprintf("configuration %p activated\n", cnf);
finalize_it:
    RETiRet;
}
static rsRetVal activate ( rsconf_t * cnf ) { DEFiRet ; runConf = cnf ; #if 0 if ( ourConf -> globals . pszConfDAGFile != NULL ) generateConfigDAG ( ourConf -> globals . pszConfDAGFile ) ; #endif setUmask ( cnf -> globals . umask ) ; tellModulesActivateConfigPrePrivDrop ( ) ; CHKiRet ( dropPrivileges ( cnf ) ) ; tellModulesActivateConfig ( ) ; startInputModules ( ) ; CHKiRet ( activateActions ( ) ) ; CHKiRet ( activateRulesetQueues ( ) ) ; CHKiRet ( activateMainQueue ( ) ) ; runInputModules ( ) ; dbgprintf ( " \n " , cnf ) ; finalize_it : RETiRet ; }
Activate an already-loaded configuration.
Activate an already - loaded configuration .
/* at this point, we "switch" over to the running conf */ /* currently the DAG is not supported -- code missing! */ /* TODO: re-enable this functionality some time later! */ /* check if we need to generate a config DAG and, if so, do that */ /* the output part and the queue is now ready to run. So it is a good time
     * to initialize the inputs. Please note that the net code above should be
     * shuffled to down here once we have everything in input modules.
     * rgerhards, 2007-12-14
     * NOTE: as of 2009-06-29, the input modules are initialized, but not yet
     * run. Keep in mind. though, that the outputs already run if the queue was
     * persisted to disk. -- rgerhards
     */ /* finally let the inputs run... */