From e2b8ead532ae5ccc7fa245ee013578656738f903 Mon Sep 17 00:00:00 2001 From: Tim Kimber Date: Mon, 10 Jan 2022 18:03:33 +0000 Subject: [PATCH] Close fd 3 and 4 on centos6 (otherwise bats hangs) --- test/restart-ftpd | 2 +- test/restart-nginx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/restart-ftpd b/test/restart-ftpd index a212b78..768ff93 100755 --- a/test/restart-ftpd +++ b/test/restart-ftpd @@ -11,7 +11,7 @@ if [ "$GETSSL_OS" = "alpine" ]; then elif [[ "$GETSSL_OS" == "centos"[78] || "$GETSSL_OS" == "rockylinux"* ]]; then pgrep vsftpd | head -1 | xargs kill -HUP elif [[ "$GETSSL_OS" == "centos6" ]]; then - service vsftpd "$arg" + service vsftpd "$arg" 3>&- 4>&- else service vsftpd restart >/dev/null 3>&- 4>&- fi diff --git a/test/restart-nginx b/test/restart-nginx index 25bbca4..0817087 100755 --- a/test/restart-nginx +++ b/test/restart-nginx @@ -7,7 +7,7 @@ elif [[ "$GETSSL_OS" == "centos"[78] || "$GETSSL_OS" == "rockylinux"* ]]; then pgrep nginx | head -1 | xargs kill -HUP sleep 5 elif [[ "$GETSSL_OS" == "centos6" ]]; then - service nginx restart + service nginx restart 3>&- 4>&- # service nginx restart else service nginx restart >/dev/null 3>&- 4>&-