Roxen.git / server / base_server / global_variables.pike

version» Context lines:

Roxen.git/server/base_server/global_variables.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS. - // $Id: global_variables.pike,v 1.97 2005/12/21 13:40:03 noring Exp $ + // $Id: global_variables.pike,v 1.98 2006/10/27 15:58:38 mast Exp $      // #pragma strict_types   #define DEFVAR mixed...:object   #define BDEFVAR mixed...:object      #define IN_ROXEN   #include <module.h>   inherit "read_config";   inherit "basic_defvar";   #include <version.h>
Roxen.git/server/base_server/global_variables.pike:21:   }      // The following three functions are used to hide variables when they   // are not used. This makes the user-interface clearer and quite a lot   // less clobbered.      private int(0..1) cache_disabled_p() { return !query("cache"); }   private int(0..1) syslog_disabled() { return query("LogA")!="syslog"; }   private int(0..1) ident_disabled_p() { return [int(0..1)]query("default_ident"); }    + static void cdt_changed (Variable v); +    #ifdef SNMP_AGENT   private int(0..1) snmp_disabled() { return !query("snmp_agent"); }   private string snmp_get_cif_domain() {    //return(Standards.URI(roxenp()->configurations[0]->get_url()||"http://0.0.0.0")->host);    return("");   }   #endif      // And why put these functions here, you might righfully ask.   
Roxen.git/server/base_server/global_variables.pike:495: Inside #if efun(syslog)
   syslog_disabled);       defvar("LogNA", "Roxen", LOCALE(148, "Logging: Log as"),    TYPE_STRING,    LOCALE(149, "When syslog is used, this will be the identification "    "of the Roxen daemon. The entered value will be appended to "    "all logs."),    0, syslog_disabled);   #endif // efun(syslog)    +  Variable v = Variable.Flag (0, 0, +  LOCALE(0, "Logging: Dump threads by file polling"), +  LOCALE(0, #"\ + <p>This option can be used to produce dumps of all the threads in the + debug log in situations where the Administration Interface doesn't + respond.</p> +  + <p>It works by checking for a file called \"<i>&lt;config + name&gt;</i>.dump_threads\" in the same directory as the debug log. + <i>&lt;config name&gt;</i> is the name of the server configuration, + i.e. the same as the base name of the debug log files (typically + \"default\"). If this file exists, a thread dump is generated and the + file is deleted. If a file on the form \"<i>&lt;config + name&gt;</i>.dump_threads.<i>&lt;n&gt;</i>\", where <i>&lt;n&gt;</i> + is an integer, exists then <i>n</i> thread dumps are generated in one + minute intervals.</p> +  + <p>Note that this method normally isn't necessary in unix-like + environments; there you can just send a SIGQUIT signal to the pike + process to get a thread dump.</p> +  + <p>Enabling this creates a dedicated thread.</p>")); +  v->set_changed_callback (cdt_changed); +  defvar ("dump_threads_by_file", v); +    #ifdef THREADS    defvar("numthreads", 5, LOCALE(150, "Number of threads to run"),    TYPE_INT,    LOCALE(151, "The number of simultaneous threads Roxen will use.\n"    "<p>Please note that even if this is one, Roxen will still "    "be able to serve multiple requests, using a select loop based "    "system.\n"    "<i>This is quite useful if you have more than one CPU in "    "your machine, or if you have a lot of slow NFS accesses.</i></p>"    "<p>Do not increase this over 20 unless you have a "