mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-12-05 15:24:38 -05:00
Only set file limit to a max of 524288 (#93)
This commit is contained in:
1 parent
800d3ee3ab
commit
453252d864
1 file changed
+5
-1
@@ -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