Files
configpolicy/roles/collectd-version/files/collectd-version.service
Dustin C. Hatch 7b24babfab 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.
2024-06-12 19:03:11 -05:00

16 lines
279 B
Desktop File

[Unit]
Description=collectd version plugin
BindsTo=collectd.service
After=collectd.service
StartLimitInterval=1s
StartLimitBurst=10
[Service]
ExecStart=/usr/local/libexec/collectd-version
RemainAfterExit=true
Restart=always
RestartSec=500ms
[Install]
WantedBy=collectd.service