Hi all
I have a question, can help debug? ?
I using net/ntp for time synchronization.
rc script file /usr/local/etc/rc.conf.d/ntpd added as below
Content of /usr/local/etc/ntp.conf
And reboot and got message as below.
Twice/more daemon started and got error message.
One of ntpd daemon started as below
I tried to
Thanks a lot.
I have a question, can help debug? ?
I using net/ntp for time synchronization.
rc script file /usr/local/etc/rc.conf.d/ntpd added as below
Code:
ntpd_enable="YES"
ntpd_program="/usr/local/sbin/ntpd" # path to ntpd, if you want a different one.
ntpd_config="/usr/local/etc/ntp.conf" # ntpd(8) configuration file
ntpd_sync_on_start="YES" # Sync time on ntpd startup, even if offset is high
Content of /usr/local/etc/ntp.conf
Code:
tos minclock 3 maxclock 6
pool 0.freebsd.pool.ntp.org iburst maxpoll 9
pool 1.freebsd.pool.ntp.org iburst maxpoll 9
pool pool.ntp.org iburst maxpoll 9
server time.nist.gov iburst maxpoll 9
server clock.stdtime.gov.tw iburst maxpoll 9
restrict default limited kod nomodify notrap noquery nopeer
restrict source limited kod nomodify notrap noquery
restrict default ignore
restrict -6 default ignore
restrict 0.freebsd.pool.ntp.org nomodify nopeer noquery notrap
restrict 1.freebsd.pool.ntp.org nomodify nopeer noquery notrap
restrict pool.ntp.org nomodify nopeer noquery notrap
restrict time.nist.gov nomodify nopeer noquery notrap
restrict clock.stdtime.gov.tw nomodify nopeer noquery notrap
restrict 127.0.0.1
restrict ::1
leapfile "/var/db/ntpd.leap-seconds.list"
And reboot and got message as below.
Code:
May 17 09:36:03 epopen ntpd[48704]: ntpd 4.2.8p15@1.3728-o Sat Apr 17 17:18:14 UTC 2021 (1): Starting
May 17 09:36:03 epopen ntpd[48704]: Command line: /usr/local/sbin/ntpd -p /var/db/ntp/ntpd.pid -c /usr/local/etc/ntp.conf -f /var/db/ntp/ntpd.drift -g
May 17 09:36:03 epopen ntpd[48704]: ----------------------------------------------------
May 17 09:36:03 epopen ntpd[48704]: ntp-4 is maintained by Network Time Foundation,
May 17 09:36:03 epopen ntpd[48704]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
May 17 09:36:03 epopen ntpd[48704]: corporation. Support and training for ntp-4 are
May 17 09:36:03 epopen ntpd[48704]: available at https://www.nwtime.org/support
May 17 09:36:03 epopen ntpd[48704]: ----------------------------------------------------
May 17 09:36:03 epopen ntpd[76188]: Cannot set RLIMIT_MEMLOCK: Operation not permitted
May 17 09:36:10 epopen ntpd[93739]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): good hash signature
May 17 09:36:10 epopen ntpd[93739]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): loaded, expire=2021-06-28T00:00:00Z last=2017-01-01T00:00:00Z ofs=37
May 17 09:36:11 epopen ntpd[76188]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): good hash signature
May 17 09:36:11 epopen ntpd[76188]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): loaded, expire=2021-06-28T00:00:00Z last=2017-01-01T00:00:00Z ofs=37
May 17 09:36:11 epopen ntpd[76188]: unable to bind to wildcard address :: - another process may be running - EXITING
May 17 09:36:11 epopen ntpd[48704]: daemon child exited with code 1
May 17 09:36:11 epopen root[33]: /etc/rc: WARNING: failed to start ntpd
Twice/more daemon started and got error message.
One of ntpd daemon started as below
Code:
ntpd 93739 0.0 0.1 21392 4844 - Ss 09:36 0:00.09 /usr/local/sbin/ntpd -p /var/db/ntp/ntpd.pid -c /usr/local/etc/ntp.conf -f /var/db/ntp/ntpd.drift -g
I tried to
- Trace by
sh -x /etc/rc.d/ntpd start
, only one start-up. - View file /etc/rc.d/ntpd, can not find problem.
- Use base version of
ntpd
(ntpd_program="/usr/sbin/ntpd" @ /usr/local/etc/rc.conf.d/ntpd), and reboot,work fine(only one start-up)EDIT:Same issue.
Thanks a lot.
Last edited: