ms-cron hourly cron job

Mark Sapiro mark at msapiro.net
Thu Oct 27 18:17:26 UTC 2016


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.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ms-check.diff
Type: text/x-diff
Size: 418 bytes
Desc: not available
URL: <http://lists.mailscanner.info/pipermail/mailscanner/attachments/20161027/1ab5458a/attachment.diff>


More information about the MailScanner mailing list