Skip to content
Snippets Groups Projects
Commit 9a01fc4c authored by ale's avatar ale
Browse files

Fix run-node-exporter-script wrapper

The runcron invocation was sending its output to syslog.
parent 9a083fa2
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment