What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Both Chrony and NTP at the same time?

How to check this?

Reason for asking: I noticed I also have both S77ntpd and S77chronyd in /opt/etc/init.d and might have the same issue as you?
Run the following command in an SSH window:
Bash:
top -b -n 1 | grep -E "ntpd|chronyd|timeserverd" | grep -v grep

If you do have both running, I suggest you install the latest 'develop' branch version (see post #12).
Bash:
ntpmerlin develop
 
Thanks @Martinski. I do suspect it was somehow installed by the recent Entware update.
...

Curious if this started happening with the latest Entware update, that’s about the timeframe it did for me, ...

Reason for asking: I noticed I also have both S77ntpd and S77chronyd in /opt/etc/init.d and might have the same issue as you?

I've made changes in the script to double-check that the selected NTP service script that's installed by ntpMerlin (for ntpd or chronyd) has not been overwritten or modified (e.g. via Entware package updates). If the service script doesn't match as expected, the code will re-download the ntpMerlin-specific script, replace the existing version, and restart the time server. It will also remove the additional time server script (if found).

These checks are performed at startup following a reboot, every time the NTP server is started or restarted, and every 10 minutes via the pre-existing cron job that generates time server stats.

The latest 'develop' branch version tag is v3.4.10_25073100.
Example:
ntpMerlin_Develop_v3.4.10_CLI_VersTag.jpg


One behavior i have notice when running ntpmerlin is that it still leaves the entware packages installed even when just switching between the two. This creates a bad behavior when users go to update and upgrade their entware repositories, it automatically reinstalls the init.d scripts for the unused ntp service because the package is still technically listed as one of entwares installed packages. So lets say we are using chronyd, but ntpd is still listed as an installed entware package even though we are not using it with ntpmerlin. Entware will recreate the init.d script upon upgrading entware repository of installed packages.
....
Thanks for the tips, but I think the simplest solution would be to double-check the existing Entware service scripts and replace or remove as needed (see above). At worst, there's a 10-minute gap between checks during which the wrong service scripts may exist simultaneously; however, the situation will be corrected automatically, and most users won't even notice. ;)
 
Last edited:

I've made changes in the script to double-check that the selected NTP service script that's installed by ntpMerlin (for ntpd or chronyd) has not been overwritten or modified (e.g. via Entware package updates). If the service script doesn't match as expected, the code will re-download the ntpMerlin-specific script, replace the existing version, and restart the time server. It will also remove the additional time server script (if found).

These checks are performed at startup following a reboot, every time the NTP server is started or restarted, and every 10 minutes via the pre-existing cron job that generates time server stats.

The latest 'develop' branch version tag is v3.4.10_25073100.
Example:
View attachment 67025


Thanks for the tips, but I think the simplest solution would be to double-check the existing Entware service scripts and replace or remove as needed (see above). At worst, there's a 10-minute gap between checks during which the wrong service scripts may exist simultaneously; however, the situation will be corrected automatically, and most users won't even notice. ;)
That is great for people who run ntpMerlin, but what about when they uninstall ntpMerlin. Surely you have a cleanup to remove the unused binary.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top