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]