Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

test the daemon

2 views
Skip to first unread message

Peter Vereshagin

unread,
Nov 12, 2012, 3:33:34 AM11/12/12
to per...@perl.org
Hello.

I have a kind of specific requirements for the daemon I'm trying to author
like foreground running, configurable stuff like number of forks, port to
listen, etc.

I'm wondering if such a module exists that can check this. For example, list
the number of processes to ensure there are forks and their number is equal to
the configured. Or, kill the daemon with specified signal (e. g., HUP) and
check if the old log file handle was closed and the new is opened. The latter
can be made with 'lsof' kind of module. The port listening can be checked by
mean of 'lsof' or 'netstat' I think.

Does such a stuff exist? Partial solution(s) should be interesting, too.

--
Peter Vereshagin <pe...@vereshagin.org> (http://vereshagin.org) pgp: A0E26627

Karen Etheridge

unread,
Nov 14, 2012, 5:20:18 PM11/14/12
to per...@perl.org


On Mon, Nov 12, 2012 at 12:33:34PM +0400, Peter Vereshagin wrote:
> I have a kind of specific requirements for the daemon I'm trying to author
> like foreground running, configurable stuff like number of forks, port to
> listen, etc.

I would recommend looking at:
Parallel::PreFork
Daemon::Control

0 new messages