From 9a01fc4ccc031e3dea26bd4e5cec00caaf5c4faf Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Thu, 11 Feb 2021 14:09:43 +0000 Subject: [PATCH] Fix run-node-exporter-script wrapper The runcron invocation was sending its output to syslog. --- roles/float-base/files/run-node-exporter-script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/float-base/files/run-node-exporter-script.sh b/roles/float-base/files/run-node-exporter-script.sh index 79f9f5d1..bacc6456 100644 --- a/roles/float-base/files/run-node-exporter-script.sh +++ b/roles/float-base/files/run-node-exporter-script.sh @@ -24,7 +24,7 @@ output_file="${output_dir}/${script_name}.prom" tmp_file="${output_file}.$$" trap "rm -f $tmp_file 2>/dev/null" EXIT INT TERM -runcron --no-metrics --splay 60 --name "node-exporter-$script_name" -- \ +runcron --no-syslog --no-metrics --splay 60 --name "node-exporter-$script_name" -- \ "$script_path" > "$tmp_file" if [ $? -gt 0 ]; then rm -f "$tmp_file" 2>/dev/null -- GitLab