diff --git a/rootfs/etc/cont-init.d/firefox.sh b/rootfs/etc/cont-init.d/firefox.sh index ef1336d..eb6c90d 100755 --- a/rootfs/etc/cont-init.d/firefox.sh +++ b/rootfs/etc/cont-init.d/firefox.sh @@ -20,9 +20,9 @@ fi # Verify the size of /dev/shm. SHM_SIZE_MB="$(df -m /dev/shm | tail -n 1 | tr -s ' ' | cut -d ' ' -f2)" if [ "$SHM_SIZE_MB" -eq 64 ]; then - echo 'FAIL' > /tmp/.firefox_shm_check + echo 'SHM_CHECK_FAIL' > /tmp/.firefox_shm_check else - echo 'PASS' > /tmp/.firefox_shm_check + echo 'SHM_CHECK_PASS' > /tmp/.firefox_shm_check fi if /usr/bin/membarrier_check 2>/dev/null; then diff --git a/rootfs/etc/logmonitor/notifications.d/shm_size/filter b/rootfs/etc/logmonitor/notifications.d/shm_size/filter index 8b78571..914e41d 100755 --- a/rootfs/etc/logmonitor/notifications.d/shm_size/filter +++ b/rootfs/etc/logmonitor/notifications.d/shm_size/filter @@ -5,8 +5,8 @@ set -u # Treat unset variables as an error. LINE="$1" -if [ "$LINE" = "FAIL" ]; then - echo 'ACK' > /tmp/.firefox_shm_check +if [ "$LINE" = "SHM_CHECK_FAIL" ]; then + echo 'SHM_CHECK_ACK' > /tmp/.firefox_shm_check exit 0 fi