No logging in Solaris 9 (with workaround)

René Berber r.berber at computer.org
Tue Sep 12 01:59:01 IST 2006


Hi,

After upgrading MS to version 4.55.10 I ended with no MS output to the log,
changing Sys::Syslog to version 0.18 didn't help.

Now I've upgraded to version 4.56.4, same behavior.

To make a long story short, after some simple tests using an example in the
Sys::Syslog bug list I changed lib/MailScanner/Log.pm as follows:

    eval {
#     if ($^O !~ /solaris|sunos|irix/i) {
        Sys::Syslog::setlogsock('udp');
#     } # else {

Notice there are 2 changes, the 'udp' since 'unix' did not work in my simple
test, 'stream' doesn't work under Solaris, and I commented the test because,
somehow, it was skipping the setlogsock operation under Solaris 9.

So now it works as expected.

My environment is Sol9 sparc, perl 5.8.0, all perl modules upgraded to latest
version I found (with cpan).
-- 
René Berber



More information about the MailScanner mailing list