Solaris 10: won't start via init script

randyf at sibernet.com randyf at sibernet.com
Mon Apr 17 00:08:48 IST 2006



On Sat, 15 Apr 2006, Jeff A. Earickson wrote:

> Yes, but it still supports legacy scripts in /etc/init.d so the script
> that I used with Solaris 9 ought to work.

   Yes, your legacy script should work (verify it by running: "svcs -a | 
grep legacy_run" and see if it is in the list), but there may be 
dependancies on other services that are controlled by SMF, such as 
sendmail.  Also, if you are using the standard Solaris distributed Perl, 
you are now using a 5.8 perl variant (depending on your patch level), so 
you may require the reinstallation of some perl modules (or changing the 
/usr/bin/perl link), but at a minimum, may need to recompile the required 
MailScanner Perl Modules.

   And as sendmail is now an SMF service, you won't be able to manage how 
it is run by changing init.d scripts, but instead needs to have the 
methods changed.  I have a manifest that can be used as a replacement to 
the Solaris sendmail manifest, that will create and use the mqueue and 
mqueue.in directories, as well as start and stop MailScanner (it is even 
zone aware).  If anyone thinks this would be usefull, or maybe put it in 
the contributed space, I will happily send it along.

 	---- Randy

>
> Jeff Earickson
>
> On Sat, 15 Apr 2006, Pentland G. wrote:
>
>> Date: Sat, 15 Apr 2006 17:17:41 +0100
>> From: Pentland G. <G.Pentland at soton.ac.uk>
>> Reply-To: MailScanner discussion <mailscanner at lists.mailscanner.info>
>> To: MailScanner discussion <mailscanner at lists.mailscanner.info>
>> Subject: RE: Solaris 10: won't start via init script
>> 
>> Not entirely sure about the MailScanner errors but...
>> 
>> Solaris 10 doesn't use init scripts!
>> 
>> There a thing called SMF, look at the man pages for "svcs" and "svcadm"
>> 
>> Hope that helps
>> 
>> Gary
>> 
>> Jeff A. Earickson wrote:
>>> Julian and Solaris 10 users,
>>> 
>>> I'm baffled by this one.  I had to move my mail services (under
>>> duress, bad hardware) from a Solaris 9 to a Solaris 10 box last
>>> night.  MailScanner (4.52.2) refuses to start via my /etc/init.d
>>> script, which basically just does:
>>> 
>>> MSDIR=/opt/MailScanner
>>> $MSDIR/bin/check_mailscanner
>>> 
>>> If I look at the syslog (leading timestamps trimmed), it just
>>> spits out this over and over:
>>>
>>>     MailScanner E-Mail Virus Scanner version 4.52.2 starting...
>>>     Read 711 hostnames from the phishing whitelist
>>>     Config: calling custom init function IPBlock
>>>     Initialising IP blocking
>>>     Read 128 IP blocking entries from /etc/MailScanner/IPBlock.conf
>>>     Using SpamAssassin results cache
>>>     Connected to SpamAssassin cache database
>>>     Expired 1 records from the SpamAssassin cache
>>> 
>>> (pause, followed by another round in a few seconds).
>>> 
>>> Here's where it gets weird...  If I run in debug mode, a batch runs
>>> fine.  If I just let the following root crontab run, MailScanner
>>> kicks off and runs normally (in non-debug mode):
>>>
>>>     #---Ensure my mailscanner is still running
>>>     0,10,20,30,40,50 * * * * [ -x
>>> /opt/MailScanner/bin/check_mailscanner ] &&
>>> /opt/MailScanner/bin/check_mailscanner >/dev/null 2>&1
>>> 
>>> MailScanner --lint gives the following:
>>>
>>>     Read 711 hostnames from the phishing whitelist
>>>     Config: calling custom init function IPBlock
>>>     Could not use Custom Function code
>>>     MailScanner::CustomConfig::InitIPBlock, it could not be "eval"ed.
>>>     Make sure the module is correct with perl -wc at
>>>     /opt/MailScanner/lib/MailScanner/Config.pm line 803 Checking for
>>>     SpamAssassin errors (if you use it)... Using SpamAssassin results
>>>     cache Connected to SpamAssassin cache database config:
>>>     SpamAssassin failed to parse line, "/usr/bin/pyzor" is not valid
>>>     for "pyzor_path", skipping: pyzor_path /usr/bin/pyzor config:
>>>     SpamAssassin failed to parse line, "/usr/bin/pyzor" is not valid
>>> for "pyzor_path", skipping: pyzor_path /usr/bin/pyzor netset: cannot
>>> include 127.0.0.1/32 as it has already been included netset: cannot
>>> include 137.146.28.68/32 as it has already been included SpamAssassin
>>> reported an error.
>>>
>>>     MailScanner.conf says "Virus Scanners = clamavmodule"
>>>     Found these virus scanners installed: clamavmodule, sophos
>>> 
>>> This output is the same as the old system, which is still up but not
>>> processing email anymore.
>>> 
>>> I played with the setsockopt setting in Log.pm to see if that made a
>>> difference; it didn't.  The manpage for syslogd in S10 says it uses
>>> streams.
>>> 
>>> Any ideas?
>>> 
>>> Jeff Earickson
>>> Colby College
>> 
>> 
>> 
>> -- 
>> MailScanner mailing list
>> mailscanner at lists.mailscanner.info
>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>> 
>> Before posting, read http://wiki.mailscanner.info/posting
>> 
>> Support MailScanner development - buy the book off the website!
>> 
> -- 
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!


More information about the MailScanner mailing list