]> git.etc.gen.nz Git - spong.git/commitdiff
moved sleep code to after config file loading. $SPONGSLEEP was defaulting to 300
authorStephen L Johnson <sjohnson@monsters.org>
Mon, 6 Nov 2000 19:31:53 +0000 (19:31 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Mon, 6 Nov 2000 19:31:53 +0000 (19:31 +0000)
src/spong-server.pl

index b753665e1aa08bb4a2cb1220af0c120d3ff2b083..04c417af4c6e926253ae7f98ad8cb3ac101753b5 100755 (executable)
@@ -6,7 +6,7 @@
 # There are one or more update processes that listen for status updates 
 # from client programs.
 
-# $Id: spong-server.pl,v 1.29 2000/09/27 04:05:42 sljohnson Exp $
+# $Id: spong-server.pl,v 1.30 2000/11/06 19:31:53 sljohnson Exp $
 
 use lib "@@LIBDIR@@";
 
@@ -59,12 +59,6 @@ $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();
@@ -79,6 +73,11 @@ $shutdown = 0;
 Spong::Daemon::Daemonize() unless ($debug || $restart || $kill) ;
 &handle_signals();    # Set up handlers, and signal the current server if asked
 
+# Find our SPONGSLEEP value
+
+$SPONGSLEEP = $SPONGSLEEP{'spong-server'} || $SPONGSLEEP{'DEFAULT'} ||
+              $SPONGSLEEP || 300;
+
 # Determine all of the update processes that will need to be running
 $PROCS{'query'} = { func => \&listen_for_queries, pid => undef };