Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions templates/common/bin/runlogwatch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
# Ramdisk logs path
LOG_DIR=${LOG_DIR:-/var/lib/ironic/ramdisk-logs}

# NOTE(hjensas): OSPRH-17520
if ! command -v inotifywait; then
echo "WARNING: ramdisk-logs will not be captured, because the inotifywait command is missing. Please patch the OpenstackVersion to update container images."
# Start a tail on /dev/null to do nothing forever
tail -f /dev/null
fi

inotifywait -m "${LOG_DIR}" -e close_write |
while read -r path _action file; do
echo "************ Contents of ${path}${file} ramdisk log file bundle **************"
Expand Down