From: Stephen L Johnson Date: Mon, 6 Nov 2000 19:31:53 +0000 (+0000) Subject: moved sleep code to after config file loading. $SPONGSLEEP was defaulting to 300 X-Git-Tag: spong-2_7_1~14 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03e737a3957f4b1a77cbe8bb9971a3f045138083;p=spong.git moved sleep code to after config file loading. $SPONGSLEEP was defaulting to 300 --- diff --git a/src/spong-server.pl b/src/spong-server.pl index b753665..04c417a 100755 --- a/src/spong-server.pl +++ b/src/spong-server.pl @@ -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 };