mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Log all services to RAM
This commit is contained in:
parent
2a5ab77637
commit
42219db95a
@ -8,4 +8,4 @@ dirs=(/dev/shm/logs/frigate /dev/shm/logs/go2rtc /dev/shm/logs/nginx)
|
|||||||
|
|
||||||
mkdir -p "${dirs[@]}"
|
mkdir -p "${dirs[@]}"
|
||||||
chown nobody:nogroup "${dirs[@]}"
|
chown nobody:nogroup "${dirs[@]}"
|
||||||
chmod 02755 "${dirs[@]}"
|
chmod 02755 "${dirs[@]}"
|
||||||
@ -13,4 +13,4 @@ fi
|
|||||||
|
|
||||||
# Make the container exit with the same exit code as the service
|
# Make the container exit with the same exit code as the service
|
||||||
echo "${exit_code}" > /run/s6-linux-init-container-results/exitcode
|
echo "${exit_code}" > /run/s6-linux-init-container-results/exitcode
|
||||||
exec /run/s6/basedir/bin/halt
|
exec /run/s6/basedir/bin/halt
|
||||||
@ -8,4 +8,4 @@ cd /opt/frigate
|
|||||||
|
|
||||||
# Replace the bash process with the Frigate process, redirecting stderr to stdout
|
# Replace the bash process with the Frigate process, redirecting stderr to stdout
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec python3 -u -m frigate
|
exec python3 -u -m frigate
|
||||||
@ -12,4 +12,4 @@ fi
|
|||||||
|
|
||||||
# Replace the bash process with the go2rtc process, redirecting stderr to stdout
|
# Replace the bash process with the go2rtc process, redirecting stderr to stdout
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec go2rtc -config="${config_path}"
|
exec go2rtc -config="${config_path}"
|
||||||
@ -4,4 +4,4 @@
|
|||||||
|
|
||||||
# Replace the bash process with the NGINX process, redirecting stderr to stdout
|
# Replace the bash process with the NGINX process, redirecting stderr to stdout
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec nginx
|
exec nginx
|
||||||
Loading…
Reference in New Issue
Block a user