Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.487 2001/09/11 14:30:46 hop Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.488 2001/09/13 13:15:18 hop Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:361:    modules_stopped->signal()   #endif    ;   }      void stop (void|int asynch)   //! Unregisters the urls and calls stop in all modules. Uses the   //! handler threads to lessen the impact if a module hangs. Doesn't   //! wait for all modules to finish if @[asynch] is nonzero.   { +  + #ifdef SNMP_AGENT +  if(query("snmp_process") && objectp(roxen->snmpagent)) { +  roxen->snmpagent->vs_stop_trap(get_config_id()); +  roxen->snmpagent->del_virtserv(get_config_id()); +  } + #endif +     unregister_urls();       multiset allmods = mkmultiset (indices (otomod));    num_modules = 17;       if (types_module) {    num_modules++;    roxen.handle (safe_stop_module, types_module, "type module");    allmods[types_module] = 0;    }
Roxen.git/server/base_server/configuration.pike:3188:    }       after_init_hooks = ({});       inited = 1;    if (!modules_already_enabled)    report_notice(LOC_S(4, "All modules for %s enabled in %3.1f seconds") +    "\n\n", query_name(), (gethrtime()-start_time)/1000000.0);      #ifdef SNMP_AGENT -  // Cold start trap after real virt.serv. loading -  if(objectp(roxen->snmpagent)) +  // Start trap after real virt.serv. loading +  if(query("snmp_process") && objectp(roxen->snmpagent))    roxen->snmpagent->vs_start_trap(get_config_id());   #endif      }      DataCache datacache;      static void create()   {    if (!name) error ("Configuration name not set through bootstrap_info.\n");