minor issue with /usr/sbin/ms-check
M A Young
m.a.young at durham.ac.uk
Wed Oct 26 08:27:18 UTC 2016
I am migrating to mailscanner 5 and have noticed that mailscanner can get
in a state where ms-check will restart it every hour. I am not yet sure
what causes the initial restart but subsequent restarts are because the
restarted mailscanner is missing a pid file, which is in turn seems to be
because the previous mailscanner processes haven't finished when the new
processes are starting. Adding a short delay to the ms-check script (2
seconds seems to be enough based on my limited testing) seems to stop the
repeated restart behaviour.
I have included a possible patch below.
Michael Young
--- /usr/sbin/ms-check 2016-08-14 17:05:35.000000000 +0100
+++ /usr/sbin/ms-check+ 2016-10-25 16:12:14.000000000 +0100
@@ -101,6 +101,7 @@
# kill any rogue processes
kill -15 $(ps axww | grep [M]ailScanner | awk '{print $1}') > /dev/null 2>&1
+ sleep 2
# log the start
More information about the MailScanner
mailing list