pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/47149: net/ntp4 fails to ntp.conf



>Number:         47149
>Category:       pkg
>Synopsis:       net/ntp4 fails to ntp.conf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 01 05:50:01 +0000 2012
>Originator:     Showta Ishizaki
>Release:        NetBSD 5.1.2_PATCH
>Organization:
NSRG.FML.ORG
>Environment:
NetBSD nsrg00.spub.chitose.ac.jp 5.1.2_PATCH NetBSD 5.1.2_PATCH (HOME_SERVER) 
#0: Mon Apr 16 06:49:15 JST 2012  
zakinko%bambi.snowrabbit.org@localhost:/var/nbbuild/build.i386.i386.netbsd-5.1.2_PATCH/obj/var/.ourfs/netbsd-5.1.2_PATCH/usr/src/sys/arch/i386/compile/HOME_SERVER
 i386
>Description:
When I install net/ntp4 then try to boot /etc/rc.d/ntpd, it say that there is 
no /usr/pkg/etc/ntp.conf.
Accordingly, I copy /usr/pkgsrc/net/ntp4/files/ntp.conf and add one line of 
configuration.
However, 4 lines are outoutted when I do ntpq because it reads /etc/ntp.conf 
instead of /usr/pkg/etc/ntp.conf.

# cd /usr/pkgsrc/net/ntp4
# make install
# cp -p /usr/pkg/share/examples/rc.d/ntpd /etc/rc.d/
# cp -p /usr/pkg/share/examples/rc.d/ntpdate /etc/rc.d/

# /etc/rc.d/ntpd start
/etc/rc.d/ntpd: WARNING: /usr/pkg/etc/ntp.conf is not readable.

# cp -p /usr/pkgsrc/net/ntp4/files/ntp.conf /usr/pkg/etc/ntp.conf
# echo server 0.netbsd.pool.ntp.org >> /usr/pkg/etc/ntp.conf
# /etc/rc.d/ntpd start
Starting ntpd.
# ntpq -n -c peers localhost
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 59.106.180.168  203.178.137.183  2 u    1   64    1   97.219  -11.807   0.001
 106.187.47.112  59.106.180.168   3 u    -   64    1   76.299  -26.829   0.001
 2403:1b00::2    .INIT.          16 -    -   64    0    0.000    0.000   0.001
 103.6.16.254    .INIT.          16 u    -   64    0    0.000    0.000   0.001
>How-To-Repeat:
# ntpq -n -c peers localhost
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 59.106.180.168  203.178.137.183  2 u    1   64    1   97.219  -11.807   0.001
 106.187.47.112  59.106.180.168   3 u    -   64    1   76.299  -26.829   0.001
 2403:1b00::2    .INIT.          16 -    -   64    0    0.000    0.000   0.001
 103.6.16.254    .INIT.          16 u    -   64    0    0.000    0.000   0.001

# echo server 0.pool.ntp.org >> /etc/ntp.conf
# echo server 1.pool.ntp.org >> /etc/ntp.conf
# echo server 2.pool.ntp.org >> /etc/ntp.conf

# /etc/rc.d/ntpd restart
Stopping ntpd.
Waiting for PIDS: 9593.
Starting ntpd.
# ntpq -c peers localhost
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ns.bio.keio.ac. 131.113.1.16     2 u   10   64    1   25.492   -8.486   0.001
 kazunoko.kuee.k 210.173.160.27   3 u    9   64    1   33.948   -5.415   0.001
 2403:1b00::2    .INIT.          16 -    -   64    0    0.000    0.000   0.000
 sylph.white-voi 150.26.2.66      2 u    7   64    1   29.431   -5.269   0.001
 www.4koma.com   133.243.238.243  2 u    6   64    1   42.503   -7.437   0.001
 ns3.khresear.ch 10.84.87.146     2 u    5   64    1   26.619   -7.467   0.001
 ntp-v6-6to4.lai .INIT.          16 -    -   64    0    0.000    0.000   0.000
>Fix:



Home | Main Index | Thread Index | Old Index