ms-cron hourly cron job
M A Young
m.a.young at durham.ac.uk
Fri Oct 28 12:49:56 UTC 2016
On Thu, 27 Oct 2016, Mark Sapiro wrote:
> On 10/27/2016 10:23 AM, Wolfgang Baudler wrote:
> >
> > Yes, looks like it hourly restarts. Still, why should it print 2 empty
> > lines when it restarts?
> >
> > Will this restart problem be fixed in a future minor release?
>
>
> The real question is not why it prints 2 empty lines. (I think they must
> come from the command to start MailScanner.)
>
> The real question is why is ms-check not finding the
> /var/run/MailScanner.pid file or not finding the PID therein if
> MailScanner is actually running? Or if MailScanner is not actually
> running, why not?
>
> Michael Young has a suggested solution at
> <http://lists.mailscanner.info/pipermail/mailscanner/2016-October/103980.html>.
> Either the sleep following the kill as he suggests or a loop to wait
> until all the processes are gone as in the attached diff might be good.
>
> Also, there is a problem with the existing code, also fixed in this diff.
>
> This may be just a workaround that helps but doesn't address the real
> question.
I now think the original lack of a pid file in my case was due to a
restart of MailScanner (via ms-init) in a different script, probably
/usr/sbin/ms-update-sa, so it is the same restart problem in a different
place.
Michael Young
More information about the MailScanner
mailing list