From 42219db95abfe79c4d00ed6ad04e18f2a7d43490 Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Sat, 3 Dec 2022 13:41:16 -0300 Subject: [PATCH] Log all services to RAM --- docker/rootfs/etc/cont-init.d/prepare-logs.sh | 2 +- docker/rootfs/etc/services.d/frigate/finish | 2 +- docker/rootfs/etc/services.d/frigate/run | 2 +- docker/rootfs/etc/services.d/go2rtc/run | 2 +- docker/rootfs/etc/services.d/nginx/run | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/rootfs/etc/cont-init.d/prepare-logs.sh b/docker/rootfs/etc/cont-init.d/prepare-logs.sh index 0d8d73ce2..3ec7e8969 100755 --- a/docker/rootfs/etc/cont-init.d/prepare-logs.sh +++ b/docker/rootfs/etc/cont-init.d/prepare-logs.sh @@ -8,4 +8,4 @@ dirs=(/dev/shm/logs/frigate /dev/shm/logs/go2rtc /dev/shm/logs/nginx) mkdir -p "${dirs[@]}" chown nobody:nogroup "${dirs[@]}" -chmod 02755 "${dirs[@]}" +chmod 02755 "${dirs[@]}" \ No newline at end of file diff --git a/docker/rootfs/etc/services.d/frigate/finish b/docker/rootfs/etc/services.d/frigate/finish index e219ed8b4..d7011c31d 100755 --- a/docker/rootfs/etc/services.d/frigate/finish +++ b/docker/rootfs/etc/services.d/frigate/finish @@ -13,4 +13,4 @@ fi # Make the container exit with the same exit code as the service echo "${exit_code}" > /run/s6-linux-init-container-results/exitcode -exec /run/s6/basedir/bin/halt +exec /run/s6/basedir/bin/halt \ No newline at end of file diff --git a/docker/rootfs/etc/services.d/frigate/run b/docker/rootfs/etc/services.d/frigate/run index c543ff0ff..68cfe1704 100755 --- a/docker/rootfs/etc/services.d/frigate/run +++ b/docker/rootfs/etc/services.d/frigate/run @@ -8,4 +8,4 @@ cd /opt/frigate # Replace the bash process with the Frigate process, redirecting stderr to stdout exec 2>&1 -exec python3 -u -m frigate +exec python3 -u -m frigate \ No newline at end of file diff --git a/docker/rootfs/etc/services.d/go2rtc/run b/docker/rootfs/etc/services.d/go2rtc/run index 9b41e517b..630d028c6 100755 --- a/docker/rootfs/etc/services.d/go2rtc/run +++ b/docker/rootfs/etc/services.d/go2rtc/run @@ -12,4 +12,4 @@ fi # Replace the bash process with the go2rtc process, redirecting stderr to stdout exec 2>&1 -exec go2rtc -config="${config_path}" +exec go2rtc -config="${config_path}" \ No newline at end of file diff --git a/docker/rootfs/etc/services.d/nginx/run b/docker/rootfs/etc/services.d/nginx/run index f9978b6b2..2ab221865 100755 --- a/docker/rootfs/etc/services.d/nginx/run +++ b/docker/rootfs/etc/services.d/nginx/run @@ -4,4 +4,4 @@ # Replace the bash process with the NGINX process, redirecting stderr to stdout exec 2>&1 -exec nginx +exec nginx \ No newline at end of file