Changes in unix.c [72d48b6:c467adc]
Legend:
- Unmodified
- Added
- Removed
-
unix.c
r72d48b6 rc467adc 80 80 } 81 81 82 if (global.conf->runmode == RUNMODE_INETD) {83 log_link(LOGLVL_ERROR, LOGOUTPUT_IRC);84 log_link(LOGLVL_WARNING, LOGOUTPUT_IRC);85 } else {86 log_link(LOGLVL_ERROR, LOGOUTPUT_CONSOLE);87 log_link(LOGLVL_WARNING, LOGOUTPUT_CONSOLE);88 }89 90 82 b_main_init(); 91 83 … … 112 104 } 113 105 114 global.auth = auth_init(global.conf->auth_backend);115 if (global.conf->auth_backend && global.auth == NULL) {116 log_message(LOGLVL_ERROR, "Unable to load authentication backend '%s'", global.conf->auth_backend);117 return(1);118 }119 120 106 if (global.conf->runmode == RUNMODE_INETD) { 107 log_link(LOGLVL_ERROR, LOGOUTPUT_IRC); 108 log_link(LOGLVL_WARNING, LOGOUTPUT_IRC); 109 121 110 i = bitlbee_inetd_init(); 122 111 log_message(LOGLVL_INFO, "%s %s starting in inetd mode.", PACKAGE, BITLBEE_VERSION); 123 112 124 113 } else if (global.conf->runmode == RUNMODE_DAEMON) { 114 log_link(LOGLVL_ERROR, LOGOUTPUT_CONSOLE); 115 log_link(LOGLVL_WARNING, LOGOUTPUT_CONSOLE); 116 125 117 i = bitlbee_daemon_init(); 126 118 log_message(LOGLVL_INFO, "%s %s starting in daemon mode.", PACKAGE, BITLBEE_VERSION); 127 119 } else if (global.conf->runmode == RUNMODE_FORKDAEMON) { 120 log_link(LOGLVL_ERROR, LOGOUTPUT_CONSOLE); 121 log_link(LOGLVL_WARNING, LOGOUTPUT_CONSOLE); 122 128 123 /* In case the operator requests a restart, we need this. */ 129 124 old_cwd = g_malloc(256);
Note: See TracChangeset
for help on using the changeset viewer.