diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-12-31 01:58:23 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-12-31 01:58:23 +0100 |
commit | 59a94acba455e986066af0ba24a1deabd5cd03ca (patch) | |
tree | be00804cc04278aa1108f9f54490755a8132259a /roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/sensors.service.j2 | |
parent | prometheus/node: add textfile collector sensors (WIP cont'd) (diff) |
prometheus/node: fix error reporiting in systemd units of textfile collectors
Diffstat (limited to 'roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/sensors.service.j2')
-rw-r--r-- | roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/sensors.service.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/sensors.service.j2 b/roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/sensors.service.j2 index a9f2a8fb..3f713eb2 100644 --- a/roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/sensors.service.j2 +++ b/roles/monitoring/prometheus/exporter/node/templates/textfile-collector-scripts/sensors.service.j2 @@ -5,7 +5,7 @@ Description=Promethues node exporter textfile collector sensors Type=oneshot Environment=TMPDIR=/var/lib/prometheus-node-exporter/textfile-collector Environment=LC_NUMERIC=C -ExecStart=bash -c "/usr/local/share/prometheus-node-exporter/sensors | sponge /var/lib/prometheus-node-exporter/textfile-collector/sensors.prom" +ExecStart=bash -o pipefail -c "/usr/local/share/prometheus-node-exporter/sensors | sponge /var/lib/prometheus-node-exporter/textfile-collector/sensors.prom" TimeoutStartSec=30s # systemd hardening-options |