aboutsummaryrefslogtreecommitdiff
path: root/lib/MasterServer/Core/Core.pm
diff options
context:
space:
mode:
authorDarkelarious <darkelarious@333networks.com>2015-02-10 18:22:08 +0100
committerDarkelarious <darkelarious@333networks.com>2015-02-10 18:22:08 +0100
commite0ada80f8582cf3b28e70b8f18de10aa505159ae (patch)
tree2b018677902d0d603bd1feb076153f6e7c68d75e /lib/MasterServer/Core/Core.pm
parent5057ec47aa9a1702b2483e0a0b3ba325bb0b7abb (diff)
downloadMasterServer-Perl-e0ada80f8582cf3b28e70b8f18de10aa505159ae.tar.gz
MasterServer-Perl-e0ada80f8582cf3b28e70b8f18de10aa505159ae.zip
Postgresql beacon receiving procedure complete and working
Diffstat (limited to 'lib/MasterServer/Core/Core.pm')
-rwxr-xr-xlib/MasterServer/Core/Core.pm7
1 files changed, 5 insertions, 2 deletions
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...");