Changeset 537d9b9 for unix.c


Ignore:
Timestamp:
2016-11-20T08:40:36Z (8 years ago)
Author:
dequis <dx@…>
Children:
3f44e43
Parents:
ba52ac5 (diff), 9f03c47 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge master up to commit '9f03c47' into parson

File:
1 edited

Legend:

Unmodified
Added
Removed
  • unix.c

    rba52ac5 r537d9b9  
    8080        }
    8181
     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
    8290        b_main_init();
    8391
     
    104112        }
    105113
     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
    106120        if (global.conf->runmode == RUNMODE_INETD) {
    107                 log_link(LOGLVL_ERROR, LOGOUTPUT_IRC);
    108                 log_link(LOGLVL_WARNING, LOGOUTPUT_IRC);
    109 
    110121                i = bitlbee_inetd_init();
    111122                log_message(LOGLVL_INFO, "%s %s starting in inetd mode.", PACKAGE, BITLBEE_VERSION);
    112123
    113124        } else if (global.conf->runmode == RUNMODE_DAEMON) {
    114                 log_link(LOGLVL_ERROR, LOGOUTPUT_CONSOLE);
    115                 log_link(LOGLVL_WARNING, LOGOUTPUT_CONSOLE);
    116 
    117125                i = bitlbee_daemon_init();
    118126                log_message(LOGLVL_INFO, "%s %s starting in daemon mode.", PACKAGE, BITLBEE_VERSION);
    119127        } else if (global.conf->runmode == RUNMODE_FORKDAEMON) {
    120                 log_link(LOGLVL_ERROR, LOGOUTPUT_CONSOLE);
    121                 log_link(LOGLVL_WARNING, LOGOUTPUT_CONSOLE);
    122 
    123128                /* In case the operator requests a restart, we need this. */
    124129                old_cwd = g_malloc(256);
Note: See TracChangeset for help on using the changeset viewer.