When running sfptpd alongside chrony, there’s a risk that chrony's clock control state may remain altered if sfptpd fails or crashes. Without specific commands to reset chrony's state after a failure, chrony may continue to operate in an unintended state, potentially affecting the clock.
Suggested Improvement
To address this, I propose adding an ExecStopPost command to the sfptpd.service file. This will ensure that if sfptpd stops unexpectedly, chrony’s state will be reset as needed.
ExecStopPost=/usr/libexec/sfptpd/chrony_clockcontrol.py enable