From: Stephen L Johnson Date: Fri, 12 May 2000 03:45:44 +0000 (+0000) Subject: added some new config variable that I missed in the documentation X-Git-Tag: spong-2_7-alpha7~26 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99b70bd8b948c941c439938ec76fd51545a67e82;p=spong.git added some new config variable that I missed in the documentation --- diff --git a/src/spong-client.pl b/src/spong-client.pl index 8da94be..8a168aa 100755 --- a/src/spong-client.pl +++ b/src/spong-client.pl @@ -57,12 +57,6 @@ if ( ! GetOptions("debug:i" => \$debuglevel, "restart" => \$restart, exit 1; } -#if( $ARGV[0] eq "--debug" ) { $debug = 1; shift; } -#if( $ARGV[0] eq "--restart" ) { $restart = 1; shift; } -#if( $ARGV[0] eq "--kill" ) { $kill = 1; shift; } -#if( $ARGV[0] eq "--nosleep" ) { $nosleep = 1; shift; } -#if( $ARGV[0] eq "--refresh" ) { $nosleep = 1; shift; } - # Initial debugging for preconfiguration debugging Spong::Log::set_debug_context( 'debuglevel' => $debuglevel ); @@ -349,7 +343,7 @@ module. =head2 Configuration Files -By default this reads the L file on startup. You can specify an +By default this reads the L file on startup. You can specify an alternate config file via a command line option and it will read that file instead. If you change values in the configuration file you will need to restart this program for those changes to be re-read. @@ -374,6 +368,28 @@ Some basic spong configuration options that define how long to sleep (in seconds) before checking the status of a service again, the hostname of the spong server, and the port number that the spong server listens +=item $SPONGSLEEP{'DEFAULT'}, $SPONGSLEEP{'spong-client'} + +This the new method for specifying the $SPONGSLEEP interval for Spong programs. +If there is not $SPONGSLEEP{} entry for the program, it will use the +I<$SPONGSLEEP{'DEFAULT'}> value. If no value is then found, B +fall back to using $SPONGSLEEP. + +=item $SPONGTMP + +The directory that Spong programs use for temporary store and work files. It +should be different directory than F for operation and securiy reasons. + +=item $SPONG_LOG_FILE + +If set to I<1>, B will log errors to a log file in I<$SPONGTMP> +named F. + +=item $SPONG_LOG_SYSLOG + +If set to I<1>, B will log errors to the syslog using the +I facility and the B priority. + =item $CHECKS A string that has the list of client check modules to run. If I<$CHECKS> is