#!/usr/bin/perl

use strict;
use warnings;
$| = 1;

use URI;

use lib qw(./libs);
use API::Config;
use API::Utils::Daemon ();
use API::RSLDaemon ();

use lib ($API::Config::Config->{'Website_libs'});
use ECS::Config;

my $configURI = URI->new($ECS::Config::c{'rslDaemonURL'});

my $daemon = API::Utils::Daemon->new(
    'LocalPort' => $configURI->port(),
    'ReuseAddr' => 1,
    )
    ->max_threads(1)
    ->dispatch_to('API::RSLDaemon')
    ->handle();

exit;

