write the service directly into place

This commit is contained in:
David 2022-10-23 13:53:01 -04:00
parent facf699c22
commit a8ce5a7ebf
2 changed files with 2 additions and 1 deletions

View File

@ -31,3 +31,4 @@ Installing a collector for the metrics now available on `:9100` is left as an ex
* <https://tailscale.com/blog/steam-deck/>
* <https://blogs.igalia.com/berto/2022/09/13/adding-software-to-the-steam-deck-with-systemd-sysext/>
* <https://forum.tailscale.com/t/steam-deck-support/2583/7>

View File

@ -13,7 +13,7 @@ mkdir -p prometheus/usr/{bin,lib/{systemd/system,extension-release.d}}
tar xzf node-exporter.tgz
cp -vrf node_exporter-*/node_exporter prometheus/usr/bin/node_exporter
cat > prometheus/usr/lib/systemd/system/prometheus-node-exporter.service <<- EOM
cat > /etc/systemd/system/prometheus-node-exporter.service <<- EOM
[Unit]
Description=Prometheus exporter for machine metrics
Requires=network-online.target