diff options
author | Adam Rayner <adam.rayner@gmail.com> | 2022-07-13 16:44:00 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-07-13 17:23:58 +0000 |
commit | 2800bc79c9f36c0dd9215c133503a0ea1f1dc998 (patch) | |
tree | 372c15a8b5d0bdf636891ad33b7ed29be1736871 /evergreen | |
parent | 81102b83a9b2a6eb8ccf43b64e4c10f1b6d04dd1 (diff) | |
download | mongo-2800bc79c9f36c0dd9215c133503a0ea1f1dc998.tar.gz |
SERVER-63005: SELinux test logs grep journalctl instead of using --unit
Diffstat (limited to 'evergreen')
-rwxr-xr-x | evergreen/selinux_test_executor.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/evergreen/selinux_test_executor.sh b/evergreen/selinux_test_executor.sh index a0616d314d6..41b55db8ac9 100755 --- a/evergreen/selinux_test_executor.sh +++ b/evergreen/selinux_test_executor.sh @@ -74,11 +74,11 @@ tsj="$(date --utc --date='1 seconds ago' +'%Y-%m-%d %H:%M:%S')" sudo --non-interactive systemctl start mongod \ && sudo --non-interactive systemctl status mongod || ( set +o errexit - echo "=== SELinux errors:" + echo "================== SELinux errors: ==================" sudo --non-interactive ausearch -m AVC,USER_AVC,SELINUX_ERR,USER_SELINUX_ERR -ts $ts - echo "=== journalctl --unit=mongod:" - sudo --non-interactive journalctl --no-pager --since="$tsj" --unit=mongod --unit=systemd --catalog - echo "=== /var/log/mongodb/mongod.log:" + echo "================== journalctl ==================" + sudo --non-interactive journalctl --no-pager --catalog --since="$tsj" | grep -i mongo + echo "================== /var/log/mongodb/mongod.log ==================" sudo --non-interactive cat /var/log/mongodb/mongod.log echo "==== FAIL: mongod service was not started successfully" exit 1 |