Fix for collectd logs not being generated
on Debian build install.
Added python3 encoding
changed ptp service name based on OS family
Changed config file location and removed
encoding changes not compatible with
Python3
Test Plan: Debian
PASS: build package and iso
PASS: AIO-SX fresh install
PASS: check no errors in collectd.log file
related to collectd-extensions plugin
Test Plan: Centos
PASS: Apply same changes and restart collectd
No errors in log
Story: 2010079
Task: 45574
Depends-On: https://review.opendev.org/c/starlingx/stx-puppet/+/845173
Signed-off-by: Joao Paulo Tavares Musico <joaopaulotavares.musico@windriver.com>
Change-Id: I74896b14a31c567d8a8994fb8bbe3fc0a597824d