From 4d0fcf727047601b10dc088fb30eb65c9e68a84a Mon Sep 17 00:00:00 2001 From: Dan Snyder Date: Fri, 23 May 2025 11:56:36 -0400 Subject: [PATCH] Fixed comments in service files --- template/node-exporter.service.in | 9 ++++++--- template/proxmon-exporter.service.in | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/template/node-exporter.service.in b/template/node-exporter.service.in index 5b631ba..91c313c 100644 --- a/template/node-exporter.service.in +++ b/template/node-exporter.service.in @@ -1,11 +1,14 @@ [Unit] Description=Prometheus Node Exporter -After=network.target # Adjust based on dependencies, if any +# Adjust based on dependencies, if any +After=network.target [Service] ExecStart=@WORKDIR@/bin/node_exporter --collector.mountstats --no-collector.processes --no-collector.arp --no-collector.nfs --no-collector.nfsd --no-collector.thermal_zone --web.listen-address=:9100 -Restart=always # Restart if the process crashes -RestartSec=5 # Wait 5 seconds before restarting +# Restart if the process crashes +Restart=always +# Wait 5 seconds before restarting +RestartSec=5 WorkingDirectory=@WORKDIR@ [Install] diff --git a/template/proxmon-exporter.service.in b/template/proxmon-exporter.service.in index 1c136a3..c5b0528 100644 --- a/template/proxmon-exporter.service.in +++ b/template/proxmon-exporter.service.in @@ -1,11 +1,14 @@ [Unit] Description=Proxmox Process Monitor/Exporter -After=network.target # Adjust based on dependencies, if any +# Adjust based on dependencies, if any +After=network.target [Service] ExecStart=@WORKDIR@/bin/proxmon 9101 -Restart=always # Restart if the process crashes -RestartSec=5 # Wait 5 seconds before restarting +# Restart if the process crashes +Restart=always +# Wait 5 seconds before restarting +RestartSec=5 WorkingDirectory=@WORKDIR@ [Install]