The `collectd-version` script uses the *collectd* UNIX socket to send custom values to *collectd* to track the OS version. Since these values obviously cannot change while the system is running, the values are specified with a very long interval. This avoids having to continuously insert the values, either with a long-running process or by repeatedly running a script. The values only need to be inserted once when *collectd* starts.
5 lines
92 B
YAML
5 lines
92 B
YAML
- name: restart collectd-version
|
|
service:
|
|
name: collectd-version
|
|
state: restarted
|