mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-30 19:09:13 +01:00
2a5ab77637
* Log all services to RAM * Fix tests workdir * Rotate logs when they reach 10MB and keep only 1 archive * Gracefully handle shutdown * Add note about gracetime not working * Fix logs permission, create fake logs for devcontainer * Remove empty line * Update docker/rootfs/etc/services.d/frigate/run * Fix fake Frigate shebang
12 lines
282 B
Bash
Executable File
12 lines
282 B
Bash
Executable File
#!/command/with-contenv bash
|
|
# shellcheck shell=bash
|
|
# Prepare the logs folder for s6-log
|
|
|
|
set -o errexit -o nounset -o pipefail
|
|
|
|
dirs=(/dev/shm/logs/frigate /dev/shm/logs/go2rtc /dev/shm/logs/nginx)
|
|
|
|
mkdir -p "${dirs[@]}"
|
|
chown nobody:nogroup "${dirs[@]}"
|
|
chmod 02755 "${dirs[@]}"
|