mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-10-13 13:10:30 -04:00
Only set file limit to a max of 524288 (#93)
This commit is contained in:
@@ -113,7 +113,11 @@ if [[ -z $(PGPASSWORD="$DATABASE_PASS" psql -h "$DATABASE_HOST" -p "$DATABASE_PO
|
|||||||
bashio::log.notice "=> Dashboards: $grafana_ingress"
|
bashio::log.notice "=> Dashboards: $grafana_ingress"
|
||||||
bashio::log.notice ""
|
bashio::log.notice ""
|
||||||
fi
|
fi
|
||||||
ulimit -n 1048576
|
|
||||||
|
# Set max open file limit to avoid memory allocation issues
|
||||||
|
if [ "$(ulimit -Hn)" -gt 524288 ]; then
|
||||||
|
ulimit -n 524288
|
||||||
|
fi
|
||||||
|
|
||||||
bashio::log.info "Starting TeslaMate..."
|
bashio::log.info "Starting TeslaMate..."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user