r/collectd-version: Auto-restart service
Sometimes, the `collectd-version` script crashes or fails to start at boot. Configuring systemd to automatically restart it will ensure that it's always running, so machines' versions are consistently inventoried.frigate-exporter
parent
afcd2f2f05
commit
7b24babfab
|
@ -2,10 +2,14 @@
|
||||||
Description=collectd version plugin
|
Description=collectd version plugin
|
||||||
BindsTo=collectd.service
|
BindsTo=collectd.service
|
||||||
After=collectd.service
|
After=collectd.service
|
||||||
|
StartLimitInterval=1s
|
||||||
|
StartLimitBurst=10
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/libexec/collectd-version
|
ExecStart=/usr/local/libexec/collectd-version
|
||||||
RemainAfterExit=true
|
RemainAfterExit=true
|
||||||
|
Restart=always
|
||||||
|
RestartSec=500ms
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=collectd.service
|
WantedBy=collectd.service
|
||||||
|
|
Loading…
Reference in New Issue