develooper Front page | perl.poe | Postings from June 2012

stdout from POE::Component::Server::TCP as daemon

Thread Next
From:
Stefan Parvu
Date:
June 24, 2012 01:17
Subject:
stdout from POE::Component::Server::TCP as daemon
Message ID:
20120624081652.GA6855@sdrlobby.systemdatarecorder.org
Hi folks,

Im experimenting with POE, POE::Component::Server::TCP to implement
a simple daemon (Proc::Daemon) which listens to requests to update
one or many RRD databasefiles. So this daemon will use:

 Proc::Daemon
 POE::Component::Server::TCP
 RRDs

I am playing around: http://www.systemdatarecorder.org/poe1
my application starts fine but I expect to see all STDOUT,
STDERR under the dameon's log. I should read more, I know.

If I defined in my Proc::Daemon::Init the STDOUT and STDERR
like below:
eval { Proc::Daemon::Init( { child_STDOUT => "$slog",
                             child_STDERR => "$slog" } ); };


wouldnt this be ok for my POE::Component::Server::TCP ?

Thanks,
Stefan

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About