4.10-1: Cannot create + lock headers file ...

Quentin Campbell Q.G.Campbell at NEWCASTLE.AC.UK
Fri Dec 6 10:03:58 GMT 2002


Julian

We have got to the source of this problem.

The RPM tar ball /etc/MailScanner.conf file specifies the "PID file" as
/var/run/MailScanner.pid while the non-RPM tarball /etc/mailscanner.conf
file specifies "PID file" as /opt/MailScanner/var/MailScanner.pid. 

The "pidofproc" function will not match on "MailScanner" in the "ps"
output since "MailScanner" is being run by an invocation of Perl. If
that match fails then it looks for the file /var/run/MailScanner.run
which it will not find unless I am running with the RPM tarball
/etc/mailscanner.conf file. 

To see the effect of all this, contrast the output you get from
"pidofproc perl" and "pidofproc MailScanner" then compare this with the
output from "ps -ef | grep MailScanner". 

Why have your naming conventions (MailScanner <-> mailscanner, PID
directory choice, etc) diverged so much between the RPM and non-RPM
tarballs of 4.10-1? 

Quentin
---
PHONE: +44 191 222 8209    Computing Service, University of Newcastle
FAX:   +44 191 222 8765    Newcastle upon Tyne, United Kingdom, NE1 7RU.
------------------------------------------------------------------------
"Any opinion expressed above is mine. The University can get its own." 

> -----Original Message-----
> From: Quentin Campbell [mailto:Q.G.Campbell at newcastle.ac.uk] 
> Sent: 06 December 2002 07:39
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Re: 4.10-1: Cannot create + lock headers file ...
> 
> 
> > -----Original Message-----
> > From: Julian Field [mailto:mailscanner at ecs.soton.ac.uk]
> > Sent: 05 December 2002 17:41
> > To: MAILSCANNER at JISCMAIL.AC.UK
> > Subject: Re: 4.10-1: Cannot create + lock headers file ...
> > 
> > 
> > The hazard with the init script (non RPM version) is that
> > there are at least as many different ways of writing it as 
> > there are operating systems, I can't write a general one.
> > 
> [snip]
> 
> Julian
> 
> But I _am_ using the RPM init script. The rest of MS 4.10-1 
> is built from the non-RPM tar ball but I extracted the init 
> script from the RPM tarball and am using that. The only mod I 
> make is to the pathname for the "check_MailScanner" script to 
> pick up the Linux version from /opt/MailScanner/bin.
> 
> Quentin
> ---
> PHONE: +44 191 222 8209    Computing Service, University of Newcastle
> FAX:   +44 191 222 8765    Newcastle upon Tyne, United 
> Kingdom, NE1 7RU.
> --------------------------------------------------------------
> ----------
> "Any opinion expressed above is mine. The University can get 
> its own." 
> 




More information about the MailScanner mailing list