ms-cron hourly cron job

Wolfgang Baudler wbaudler at gb.nrao.edu
Thu Oct 27 18:28:51 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.
>

Maybe the problem starts with the configured restart interval in
MailScanner.conf?

Mine is configured to restart every 2 hours:

Restart Every = 7200

I will apply the diff and monitor it more closely.

Wolfgang




More information about the MailScanner mailing list