#!/bin/sh set -eu LOG_LEVEL="${IMMICH_LOG_LEVEL:='info'}" logDebug() { if [ "$LOG_LEVEL" = "debug" ] || [ "$LOG_LEVEL" = "verbose" ]; then echo "DEBUG: $1" >&2 fi } if [ -f /sys/fs/cgroup/cgroup.controllers ]; then logDebug "cgroup v2 detected." if [ -f /sys/fs/cgroup/cpu.max ]; then read -r quota period