Mads Toftum wrote:

> I know next to nothing about NT, but I've sort of got a feeling that
> this has to do with something being different in what is being
> passed to your ppfilter when it is being run as a service. How
> about having that program make a small logfile, where it prints
> the contents of @ARGV ? Does the program even run at all?

I changed the ppfilter.pl program to:

    if (scalar @ARGV == 2 and $ARGV[0] =~ /pilchard/i and $ARGV[0] =~
/443/ and $ARGV[1] =~ /rsa/i) {
        print "ntpc99\n";
        open FH, '>>D:\tmp\ppfilter.txt' or exit 1;
        print FH 'Called with arguments: ' . join(', ', @ARGV) . ".\n";
        close FH;
    }
    else {
        exit 2;
    }

This outputs the following line (once) to ppfilter.txt when starting as a
Console App, and the same (also once) when trying to start as a Service:

    Called with arguments: pilchard.uk.radan.com:443, RSA.

So the program DOES get called, and with the same arguments too!

Perhaps the Apache Service doesn't pick up the STDOUT from the program
properly?  Kirk Benson's patch which I needed to get SSLPassPhraseDialog
working at all was to do with child processes not correctly inheriting
STDOUT/STDERR, and his e-mail at the time (2000-05-10 18:17:44) mentioned
something about him not being sure what was supposed to happen when
running as a Service.

> It might also be worth a try to look through apache.org's new-httpd
> mailing list archives from june and july - there's been some
> discussion on how to make Apache work a bit better as an NT service
> (I don't know enough about NT to tell if those are related).

I'll have a look at this when I get a chance.

Thanks,

Steve Hay


______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to