The membarrier check is no longer done by the logmonitor.

This commit is contained in:
Jocelyn Le Sage 2023-01-04 20:38:16 -05:00
parent 071fb903b0
commit e4c8628bf9
7 changed files with 22 additions and 33 deletions

View file

@ -5,5 +5,27 @@ set -u # Treat unset variables as an error.
export HOME=/config
PIDS=
notify() {
for N in $(ls /etc/logmonitor/targets.d/*/send)
do
"$N" "$1" "$2" "$3" &
PIDS="$PIDS $!"
done
}
# Verify support for membarrier.
if ! /usr/bin/membarrier_check 2>/dev/null; then
notify "$APP_NAME requires the membarrier system call." "$APP_NAME is likely to crash because it requires the membarrier system call. See the documentation of this Docker container to find out how this system call can be allowed." "WARNING"
fi
# Wait for all PIDs to terminate.
set +e
for PID in "$PIDS"; do
wait $PID
done
set -e
/usr/bin/firefox --version
exec /usr/bin/firefox "$@" >> /config/log/firefox/output.log 2>> /config/log/firefox/error.log