fix syslog init blocking

This commit is contained in:
Alfonso Gamboa
2022-08-03 14:38:34 -07:00
parent 12a4549b5e
commit c0544df484
3 changed files with 10 additions and 4 deletions

View File

@@ -3,7 +3,9 @@
source /opt/wz_mini/etc/rc.common
source /opt/wz_mini/wz_mini.conf
wait_for_icamera
syslog_save() {
wait_for_icamera &
if [[ "$ENABLE_SYSLOG_SAVE" == "true" ]]; then
echo "Store syslog logs"
@@ -20,3 +22,7 @@ fi
touch -- "$SYSLOG_LOG".log
logread -F > $SYSLOG_LOG.log &
fi
}
syslog_save &

View File

@@ -1 +1 @@
Wed Aug 3 02:30:25 PM PDT 2022
Wed Aug 3 02:37:59 PM PDT 2022