On Tue, 24 Mar 2020 at 08:45, Mark Rogers mark@more-solutions.co.uk wrote:
If I stop the ntp service and run ntpd manually, it resolves the iP addresses correctly: sudo systemctl stop ntp sudo ntpd -g -u 109:113
If I kill ntpd and restart it via systemctl it fails again. So it is something to do with how it is being run as a service.
I found the problem.
The systemd unit file includes PrivateTmp=true and that is what was breaking it for me.
I did mention that the Pi was heavily modified Rasbian, right? It's built to use a read-only filesystem, but all my testing was being done with it mounted read-write so I'm not sure why this was breaking. But I assume something about the way the partitions are mounted might be breaking systemd (it's something to look further into now I have discovered it).
Mark