]> git.etc.gen.nz Git - spong.git/commitdiff
added support for new $SPONGSLEEP{} for setting sleep value
authorStephen L Johnson <sjohnson@monsters.org>
Thu, 13 Jul 2000 03:56:51 +0000 (03:56 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Thu, 13 Jul 2000 03:56:51 +0000 (03:56 +0000)
src/spong-client.pl
src/spong-server.pl

index 23817ebce822840d134acf85185e2a3e46a9ef93..bfaaa01896ac2313b19f0a8d8760913a31795a64 100755 (executable)
@@ -73,6 +73,11 @@ Spong::Daemon::Daemonize  # Daemonize if not signalling or debugging
   unless ($restart || $kill || $nosleep || $debug); 
 &handle_signals();    # Set up handlers, and signal the current server if asked
 
+# Find our SPONGSLEEP value
+
+$SPONGSLEEP = $SPONGSLEEP{'spong-client'} || $SPONGSLEEP{'DEFAULT'} ||
+              $SPONGSLEEP || 300;
+
 
 %CHECKFUNCS = (); 
 &load_checks();
index 430eb2a1e543d660b3daae4f76a4669f357a53d9..bfa1d8d53290274a66002e5ba66bf27d82141083 100755 (executable)
@@ -86,6 +86,13 @@ $datafunc_path  = "@@LIBDIR@@/Spong/plugins";
 ($HOST)      = gethostbyname(&Sys::Hostname::hostname());
 $HOST        =~ tr/A-Z/a-z/;
 
+# Find our SPONGSLEEP value
+
+$SPONGSLEEP = $SPONGSLEEP{'spong-server'} || $SPONGSLEEP{'DEFAULT'} ||
+              $SPONGSLEEP || 300;
+
+
+
 %DATAFUNCS = ();
 &load_data_funcs();
 &debug("Done loading data plugins");