From 0b5673af494344f7a1d2ce3de151c9223bfa28ee Mon Sep 17 00:00:00 2001 From: Ilya Kheifets Date: Thu, 19 Dec 2024 14:37:22 +0100 Subject: [PATCH] fix: backward compatibility for healthcheck Signed-off-by: Ilya Kheifets --- package/Dockerfile | 1 + package/Dockerfile.lite | 1 + package/sbin/healthcheck.sh | 1 + 3 files changed, 3 insertions(+) create mode 100644 package/sbin/healthcheck.sh diff --git a/package/Dockerfile b/package/Dockerfile index b730d652d6..045b6eddaa 100644 --- a/package/Dockerfile +++ b/package/Dockerfile @@ -73,6 +73,7 @@ COPY package/etc/test_parsers /etc/syslog-ng/test_parsers COPY package/etc/local_config /etc/syslog-ng/local_config COPY package/etc/local_config /etc/syslog-ng/local_config COPY package/sbin/entrypoint.sh / +COPY package/sbin/healthcheck.sh / COPY package/sbin/source_ports_validator.py / ENV SC4S_CONTAINER_OPTS=--no-caps diff --git a/package/Dockerfile.lite b/package/Dockerfile.lite index e54ceee047..559d70e80d 100644 --- a/package/Dockerfile.lite +++ b/package/Dockerfile.lite @@ -95,6 +95,7 @@ COPY package/lite/etc/config.yaml /etc/syslog-ng/config.yaml COPY package/lite/etc/addons /etc/syslog-ng/addons COPY package/sbin/entrypoint.sh / +COPY package/sbin/healthcheck.sh / COPY package/sbin/source_ports_validator.py / diff --git a/package/sbin/healthcheck.sh b/package/sbin/healthcheck.sh new file mode 100644 index 0000000000..58266224f6 --- /dev/null +++ b/package/sbin/healthcheck.sh @@ -0,0 +1 @@ +/usr/sbin/syslog-ng-ctl healthcheck --timeout 5 \ No newline at end of file