Helper for the POE::Wheel::Run for easy controlling logging of stdout/err as well as restarting with backoff.
Go to file
Zane C. B-H 746c218cc9 finalize the changes for release time 2024-01-27 15:30:00 -06:00
lib/POE/Wheel/Run rework where args info is stored 2024-01-27 15:28:14 -06:00
t rework where args info is stored 2024-01-27 15:28:14 -06:00
.gitignore Initial commit 2024-01-13 21:48:41 -06:00
Changes finalize the changes for release time 2024-01-27 15:30:00 -06:00
LICENSE Initial commit 2024-01-13 21:48:41 -06:00
MANIFEST add some tests 2024-01-14 17:49:24 -06:00
Makefile.PL note the changes so far 2024-01-27 03:36:22 -06:00
README.md more work and ready for release 2024-01-14 16:37:24 -06:00

README.md

POE-Wheel-Run-DaemonHelper

Helper for the POE::Wheel::Run for easy controlling logging of stdout/err as well as restarting with backoff.

A small example.

use strict;
use warnings;
use POE::Wheel::Run::DaemonHelper;
use POE;

my $program = 'sleep 1; echo test; derp derp derp';

my $dh = POE::Wheel::Run::DaemonHelper->new(
	program           => $program,
	status_syslog     => 1,
	status_print      => 1,
	restart_ctl       => 1,
	status_print_warn => 1,
	# this one will be ignored as the second one is already warning
	status_syslog_warn => 1,
);

$dh->create_session;

POE::Kernel->run();

Install

Requirements...

  • POE
  • Algorithm::Backoff
  • Error::Helper
  • Sys::Syslog

Via CPANM

cpanm POE::Wheel::Run::DaemonHelper

Or source...

perl Makefile.PL
make
make test
make install