Skip to content

Commit 7b380b4

Browse files
committed
Made /var/log/supervisor tmpfs instead of changing log directory on all containers
1 parent b449304 commit 7b380b4

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

dockers/docker-base-bookworm/etc/supervisor/supervisord.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ file=/var/run/supervisor.sock ; (the path to the socket file)
55
chmod=0700 ; socket file mode (default 0700)
66

77
[supervisord]
8-
logfile=/dev/shm/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
8+
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
99
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
10-
childlogdir=/dev/shm/supervisor ; ('AUTO' child log dir, default $TEMP)
10+
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
1111
user=root
1212

1313
; the below section must remain in the config file for RPC

dockers/docker-base-bullseye/etc/supervisor/supervisord.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ file=/var/run/supervisor.sock ; (the path to the socket file)
55
chmod=0700 ; socket file mode (default 0700)
66

77
[supervisord]
8-
logfile=/dev/shm/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
8+
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
99
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
10-
childlogdir=/dev/shm/supervisor ; ('AUTO' child log dir, default $TEMP)
10+
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
1111
user=root
1212

1313
; the below section must remain in the config file for RPC

files/build_templates/docker_image_ctl.j2

+1
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ start() {
631631
{%- endif %}
632632
-e RUNTIME_OWNER=local \
633633
--uts=host \{# W/A: this should be set per-docker, for those dockers which really need host's UTS namespace #}
634+
--tmpfs /var/log/supervisor:rw \
634635
{%- if install_debug_image == "y" %}
635636
-v /src:/src:ro -v /debug:/debug:rw \
636637
{%- endif %}

0 commit comments

Comments
 (0)