You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: templates/common/bin/runlogwatch.sh
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,13 @@
3
3
# Ramdisk logs path
4
4
LOG_DIR=${LOG_DIR:-/var/lib/ironic/ramdisk-logs}
5
5
6
+
# NOTE(hjensas): OSPRH-17520
7
+
if!command -v inotifywait;then
8
+
echo"WARNING: ramdisk-logs will not be captured, because the inotifywait command is missing. Please patch the OpenstackVersion to update container images."
9
+
# Start a tail on /dev/null to do nothing forever
10
+
tail -f /dev/null
11
+
fi
12
+
6
13
inotifywait -m "${LOG_DIR}" -e close_write |
7
14
whileread -r path _action file;do
8
15
echo"************ Contents of ${path}${file} ramdisk log file bundle **************"
0 commit comments