From: Stephen L Johnson Date: Thu, 13 Jul 2000 03:56:51 +0000 (+0000) Subject: added support for new $SPONGSLEEP{} for setting sleep value X-Git-Tag: spong-2_7-alpha7~6 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad90ede8a1fa05622da05697abf99b8f4bf23037;p=spong.git added support for new $SPONGSLEEP{} for setting sleep value --- 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");