diff --git a/enos/modules/vault_cluster/scripts/enable_audit_logging.sh b/enos/modules/vault_cluster/scripts/enable_audit_logging.sh index 2ec35a4eab..041fa69b59 100644 --- a/enos/modules/vault_cluster/scripts/enable_audit_logging.sh +++ b/enos/modules/vault_cluster/scripts/enable_audit_logging.sh @@ -4,7 +4,10 @@ set -eux # Run nc to listen to port 9090 for the socket audit log -nohup nc -l 9090 &>/dev/null /dev/null & + +# Sleep for a second to make sure nc is up and running +sleep 1 $VAULT_BIN_PATH audit enable file file_path="$LOG_FILE_PATH" $VAULT_BIN_PATH audit enable syslog tag="vault" facility="AUTH"