openwrt / openwrt/packages

ntpd enabling does not survive a reboot

Open
#11,836 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

release/19.07 stale
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

I running OpenWRT 19.07.2 on an APU2 PC Engines board.

Installed image is openwrt-19.07.2-x86-64-combined-ext4.img.gz.

I wanted to replace busybox-ntp with ntpd and executed the following steps

opkg install ntpd ntp-utils ntpdate
/etc/init.d/sysntpd disable
killall ntpclient
/etc/init.d/ntpd enable
/etc/init.d/ntpd start

Everything works fine, ntpd syncs with the NTP servers given in /etc/config/system after some minutes which can be verified with ntpq.

However, after a reboot ntpd does not run and instead busybox-ntp is active again.

I am not sure, if it is an issue related to the base system or to the package of ntpd.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with /etc/init.d/sysntyd and /etc/init.d/ntpd, then inspect /etc/config/system and the listed enable, start, and reboot steps. Reproduce the reboot and compare which service is enabled and running afterward; done means ntpd remains active instead of busybox-ntp.

Written by the indexing model from the issue text.

Assessment

Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.