Branch: Tag:

1997-09-09

1997-09-09 06:37:21 by David Hedbor <david@hedbor.org>

Changed so that all server ports are opened before any modules are loaded.

Rev: server/base_server/configuration.pike:1.76
Rev: server/base_server/roxen.pike:1.129

1: - string cvs_version = "$Id: configuration.pike,v 1.75 1997/09/05 12:14:05 grubba Exp $"; + string cvs_version = "$Id: configuration.pike,v 1.76 1997/09/09 06:37:21 neotron Exp $";   #include <module.h>   #include <roxen.h>   /* A configuration.. */
1541:    array err;      #ifdef MODULE_DEBUG -  perror("Modules: Enabling "+module->name+" # "+id+" ... "); +  perror(name+" (modules): Enabling "+module->name+" # "+id+" ... ");   #endif       if(module->copies)
2369:   {    array modules_to_process=sort(indices(retrieve("EnabledModules",this)));    string tmp_string; +  perror("\nEnabling all modules for "+query_name()+"... \n");       // Always enable the user database module first.    if(search(modules_to_process, "userdb#0")>-1)
2391:    roxen->current_configuration = this;    name=config;    -  perror("Enabling virtual server '"+config+"'\n"); +  perror("Creating virtual server '"+config+"'\n");       defvar("ZNoSuchFile", "<title>Sorry. I cannot find this resource</title>"    "\n<h2 align=center><configimage src=roxen.gif alt=\"File not found\">\n"
2531:    }       set("_v", CONFIGURATION_FILE_LEVEL); -  enable_all_modules(); +    }