Initial code drop.
This commit is contained in:
commit
1447b6640a
15 changed files with 685 additions and 0 deletions
2
rootfs/etc/logmonitor/notifications.d/shm_size/desc
Executable file
2
rootfs/etc/logmonitor/notifications.d/shm_size/desc
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
echo "$APP_NAME is likely to crash because of the lack of shared memory. Size of shared memory needs to be increased. See the documentation to find out how this can be done."
|
16
rootfs/etc/logmonitor/notifications.d/shm_size/filter
Executable file
16
rootfs/etc/logmonitor/notifications.d/shm_size/filter
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e # Exit immediately if a command exits with a non-zero status.
|
||||
set -u # Treat unset variables as an error.
|
||||
|
||||
LINE="$1"
|
||||
|
||||
if [ "$LINE" = "FAIL" ]; then
|
||||
echo 'ACK' > /tmp/.firefox_shm_check
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# No match found.
|
||||
exit 1
|
||||
|
||||
# vim: set ft=sh :
|
1
rootfs/etc/logmonitor/notifications.d/shm_size/level
Normal file
1
rootfs/etc/logmonitor/notifications.d/shm_size/level
Normal file
|
@ -0,0 +1 @@
|
|||
WARNING
|
2
rootfs/etc/logmonitor/notifications.d/shm_size/title
Executable file
2
rootfs/etc/logmonitor/notifications.d/shm_size/title
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
echo "$APP_NAME lacks of shared memory."
|
2
rootfs/etc/logmonitor/notifications.d/tab_crash/desc
Executable file
2
rootfs/etc/logmonitor/notifications.d/tab_crash/desc
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
echo "A $APP_NAME tab crashed because of the lack of shared memory. Size of shared memory needs to be increased. See the documentation to find out how this can be done."
|
17
rootfs/etc/logmonitor/notifications.d/tab_crash/filter
Executable file
17
rootfs/etc/logmonitor/notifications.d/tab_crash/filter
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e # Exit immediately if a command exits with a non-zero status.
|
||||
set -u # Treat unset variables as an error.
|
||||
|
||||
LINE="$1"
|
||||
|
||||
#if echo "$LINE" | grep -q "OutOfMemoryError occurred...RESTARTING!"; then
|
||||
if [ "$LINE" = "###!!! [Parent][MessageChannel] Error: (msgtype=0x150084,name=PBrowser::Msg_Destroy) Channel error: cannot send/recv" ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# No match found.
|
||||
exit 1
|
||||
|
||||
# vim: set ft=sh :
|
1
rootfs/etc/logmonitor/notifications.d/tab_crash/level
Normal file
1
rootfs/etc/logmonitor/notifications.d/tab_crash/level
Normal file
|
@ -0,0 +1 @@
|
|||
ERROR
|
2
rootfs/etc/logmonitor/notifications.d/tab_crash/title
Executable file
2
rootfs/etc/logmonitor/notifications.d/tab_crash/title
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
echo "$APP_NAME lacks of shared memory."
|
Loading…
Add table
Add a link
Reference in a new issue