From ad90ede8a1fa05622da05697abf99b8f4bf23037 Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Thu, 13 Jul 2000 03:56:51 +0000 Subject: [PATCH] added support for new $SPONGSLEEP{} for setting sleep value --- src/spong-client.pl | 5 +++++ src/spong-server.pl | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/src/spong-client.pl b/src/spong-client.pl index 23817eb..bfaaa01 100755 --- a/src/spong-client.pl +++ b/src/spong-client.pl @@ -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(); diff --git a/src/spong-server.pl b/src/spong-server.pl index 430eb2a..bfa1d8d 100755 --- a/src/spong-server.pl +++ b/src/spong-server.pl @@ -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"); -- 2.30.2