Branch: Tag:

2001-08-14

2001-08-14 01:47:17 by Honza Petrous <hop@unibase.cz>

Playing a bit with snmpagent->cold_trap notification. Not finished, yet.

Rev: server/base_server/configuration.pike:1.462
Rev: server/base_server/global_variables.pike:1.77
Rev: server/base_server/roxen.pike:1.696
Rev: server/base_server/snmpagent.pike:1.7

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.695 2001/08/13 21:35:47 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.696 2001/08/14 01:47:17 hop Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;
3877:    master()->add_module_path( d );    report_debug("\bDone [%dms]\n", (gethrtime()-t)/1000 );    + #ifdef SNMP_AGENT +  //SNMPagent start +  report_debug("SNMPagent configuration checking ... \b"); +  if(query("snmp_agent")) { +  // enabling SNMP agent +  snmpagent = SNMPagent(); +  snmpagent->enable(); +  report_debug("\benabled.\n"); +  +  } else +  report_debug("\bdisabled.\n"); + #endif // SNMP_AGENT +     enable_configurations();       set_u_and_gid(); // Running with the right [e]uid:[e]gid from this point on.
3900:    name_thread( backend_thread, "Backend" );   #endif /* THREADS */    - #ifdef SNMP_AGENT -  //SNMPagent start -  report_debug("SNMPagent configuration checking ... \b"); -  if(query("snmp_agent")) { -  // enabling SNMP agent -  snmpagent = SNMPagent(); -  snmpagent->enable(); -  report_debug("\benabled.\n"); -  -  } else -  report_debug("\bdisabled.\n"); - #endif // SNMP_AGENT -  +     // Signals which cause a restart (exitcode != 0)    foreach( ({ "SIGINT", "SIGTERM" }), string sig)    catch( signal(signum(sig), async_sig_start(exit_when_done,0)) );