From e0ada80f8582cf3b28e70b8f18de10aa505159ae Mon Sep 17 00:00:00 2001 From: Darkelarious Date: Tue, 10 Feb 2015 18:22:08 +0100 Subject: Postgresql beacon receiving procedure complete and working --- lib/MasterServer/Core/Core.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/MasterServer/Core/Core.pm') diff --git a/lib/MasterServer/Core/Core.pm b/lib/MasterServer/Core/Core.pm index d49e36b..02ec32a 100755 --- a/lib/MasterServer/Core/Core.pm +++ b/lib/MasterServer/Core/Core.pm @@ -65,13 +65,13 @@ sub main { if ( "Pg SQLite" =~ m/$db_type[1]/i) { # inform us what DB we try to load - $self->log("loader","Loading $db_type[1] database module."); + $self->log("load","Loading $db_type[1] database module."); # load dbd and tables/queries for this db type MasterServer::load_recursive("MasterServer::Database::$db_type[1]"); # Connect to database - $self->{dbh} = $self->database_login(); #FIXME!!!! + $self->{dbh} = $self->database_login(); } else { # raise error and halt @@ -84,6 +84,9 @@ sub main { # start the listening service (listen for UDP beacons) $self->{scope}->{beacon_catcher} = $self->beacon_catcher(); + # start the beacon checker service (query entries from the pending list) + $self->{scope}->{beacon_checker} = $self->beacon_checker() if ($self->{beacon_checker_enabled}); + $self->log("info", "All modules loaded. Starting..."); -- cgit v1.2.3