]> git.etc.gen.nz Git - spong.git/commitdiff
added code to use new $SPONGSLEEP hash to determine $SPONGSLEEP time
authorStephen L Johnson <sjohnson@monsters.org>
Mon, 17 Apr 2000 19:23:39 +0000 (19:23 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Mon, 17 Apr 2000 19:23:39 +0000 (19:23 +0000)
src/spong-network.pl

index 9c00b217f5f1fbcef9654a2d30f7c1963d33405c..a529411d7d6869a5327ed24ff6d75e6fe55aed84 100755 (executable)
@@ -61,6 +61,11 @@ Spong::Daemon::Daemonize()  # Daemonize if not signalling or a one-shot
    unless ($nosleep || $restart || $kill || $debug );
 &handle_signals();    # Set up handlers, and signal the current server if asked
 
+# Find our SPONGSLEEP value
+
+$SPONGSLEEP = $SPONGSLEEP{'spong-network'} || $SPONGSLEEP{'DEFAULT'} ||
+              $SPONGSLEEP || 300;
+
 %PLUGINS = {};
 &config_funcs();