> I for one think this module would be a very useful tool. Usually when I
> want some daemontools info I just end up hacking some shell output.
> This would be much more professional and manageable. The only thing I
> see as far as changes is that it would be nice to specify a default
> $daemon when createing the $svc object, for example:
>
> my $svc = new Proc::Daemontools (
> DAEMONTOOLS_DIR =>"/some-non-default-dir",
> SERVICE_DIR => "/some-non-default-dir",
> DAEMON => "qmail-send"
> );
>
> $svc->isUp(); # Defaults to $svc->isUp("qmail-send");
> $svc->isUp("qmail-smtpd"); # Ignores default.
>
> Otherwise I'd love to see this officially on CPAN sometime. :)
Hi Aran,
Your idea is great and I�ll incorporate it. I�ll provide also an acessor
method to set the daemon name, ex:
$svc->daemon("qmail-send"); # sets qmail-send as the default
Thank you,
Bruno.