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.
This commit is contained in:
Johan Smits 2017-08-24 18:07:20 +02:00 committed by Thomas VIAL
parent a2f6591212
commit 1c75cabcfd
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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() {