From 1c75cabcfda2b483fb508633075dd8559fc87670 Mon Sep 17 00:00:00 2001 From: Johan Smits Date: Thu, 24 Aug 2017 18:07:20 +0200 Subject: [PATCH] Clean any leftover pid file from a stop (#700) * Clean any leftover pid file from a stop * More time needed for travis. It can be busy and fail tests. --- Makefile | 2 +- target/start-mailserver.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 45d4c67b..70e656bf 100644 --- a/Makefile +++ b/Makefile @@ -188,7 +188,7 @@ fixtures: docker exec mail_override_hostname /bin/sh -c "nc 0.0.0.0 25 < /tmp/docker-mailserver-test/email-templates/existing-user1.txt" # Wait for mails to be analyzed - sleep 40 + sleep 60 tests: # Start tests diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 3881e1e4..0f59d301 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -1012,6 +1012,9 @@ function fix() { $_func [ $? != 0 ] && defunc done + + notify 'taskgrg' "Remove leftover pid files from a stop/start" + rm -rf /var/run/*.pid /var/run/*/*.pid } function _fix_var_mail_permissions() {