Closed staticdev closed 11 months ago
After some research I found a solution, add to /lib/systemd/system/ntp.service
:
[Service]
# ...
Restart=on-failure
RestartSec=5s
Apparently Debian ntp service will stop itself when meeting some constraints: eg. time difference is huge, or timezone is difference.
Maybe a nice enhancement to add optinal restart in this role.
@geerlingguy I made a PR with the solution I am currently using on my Debian servers. Would appreciate if you can evaluate it for adding back to your original role.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.
I decided to open an issue since other users may be having the same when installing NTP with this role.
Restarted VM shows status
failed
onsystemctl status ntp
.Logs from boot
journalctl -b -u ntp
:Any ideas what may cause this?