From 5dc79134b265c03796bbce5db3b65a305750dfdd Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Thu, 12 May 2022 13:20:54 -0700 Subject: [PATCH] cron file consistent logging (still broken) --- docker/entrypoint-collector.sh | 2 +- rootfs/etc/services.d/collector-once/run | 2 +- rootfs/etc/services.d/cron/run | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/entrypoint-collector.sh b/docker/entrypoint-collector.sh index 69ed815..c65349a 100755 --- a/docker/entrypoint-collector.sh +++ b/docker/entrypoint-collector.sh @@ -11,4 +11,4 @@ sed -i 's|{COLLECTOR_CRON_SCHEDULE}|'"${COLLECTOR_CRON_SCHEDULE}"'|g' /etc/cron. # now that we have the env start cron in the foreground echo "starting cron" -su -c "cron -l 8 -f" root +su -c "cron -f -L 15" root diff --git a/rootfs/etc/services.d/collector-once/run b/rootfs/etc/services.d/collector-once/run index 7bd73e8..7a5cb67 100644 --- a/rootfs/etc/services.d/collector-once/run +++ b/rootfs/etc/services.d/collector-once/run @@ -9,5 +9,5 @@ s6-svc -O /var/run/s6/services/collector-once # wait until scrutiny is "Ready" until $(curl --output /dev/null --silent --head --fail http://localhost:8080/api/health); do echo "scrutiny api not ready" && sleep 5; done -echo "starting scrutiny collector" +echo "starting scrutiny collector (run-once mode. subsequent calls will be triggered via cron service)" /opt/scrutiny/bin/scrutiny-collector-metrics run diff --git a/rootfs/etc/services.d/cron/run b/rootfs/etc/services.d/cron/run index 5687bbe..17d4216 100644 --- a/rootfs/etc/services.d/cron/run +++ b/rootfs/etc/services.d/cron/run @@ -7,4 +7,4 @@ printenv | sed 's/^\(.*\)$/export \1/g' > /env.sh echo "starting cron" -cron -f +cron -f -L 15