Package: ntp
Version: 1:4.2.6.p5+dfsg-2
Severity: normal
Tags: upstream

Dear Maintainer,

When using interface names as arguments to the interface configuration
command, as the man page for ntp.conf says, ntpd chokes, giving the
following output in the log file, and proceeds to open no interfaces
individually, but instead listens on *:123

Log output:

Jun 24 21:34:09 bleys ntpd[30696]: ntpd 4.2.6p5@1.2349-o Sat May 12 09:54:55 
UTC 2012 (1)
Jun 24 21:34:09 bleys ntpd[30697]: proto: precision = 0.105 usec
Jun 24 21:34:09 bleys ntpd[30697]: line 26 column 23 syntax error, unexpected 
T_String, expecting T_EOC
Jun 24 21:34:09 bleys ntpd[30697]: syntax error in /etc/ntp.conf line 26, 
column 23
Jun 24 21:34:09 bleys ntpd[30697]: line 27 column 23 syntax error, unexpected 
T_String, expecting T_EOC
Jun 24 21:34:09 bleys ntpd[30697]: syntax error in /etc/ntp.conf line 27, 
column 23
Jun 24 21:34:09 bleys ntpd[30697]: line 28 column 22 syntax error, unexpected 
T_String, expecting T_EOC
Jun 24 21:34:09 bleys ntpd[30697]: syntax error in /etc/ntp.conf line 28, 
column 22
Jun 24 21:34:09 bleys ntpd[30697]: Listen normally on 0 v4wildcard 0.0.0.0 UDP 
123
Jun 24 21:34:09 bleys ntpd[30697]: Listen and drop on 1 v6wildcard :: UDP 123
Jun 24 21:34:09 bleys ntpd[30697]: Listen normally on 2 lo 127.0.0.1 UDP 123
Jun 24 21:34:09 bleys ntpd[30697]: Listen normally on 3 lo ::1 UDP 123
Jun 24 21:34:09 bleys ntpd[30697]: peers refreshed
Jun 24 21:34:09 bleys ntpd[30697]: Listening on routing socket on fd #20 for 
interface updates



-- System Information:
Debian Release: 7.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages ntp depends on:
ii  adduser      3.113+nmu3
ii  dpkg         1.16.10
ii  libc6        2.13-38
ii  libcap2      1:2.22-1.2
ii  libedit2     2.11-20080614-5
ii  libopts25    1:5.12-0.1
ii  libssl1.0.0  1.0.1e-2
ii  lsb-base     4.1+Debian8+deb7u1
ii  netbase      5.0

Versions of packages ntp recommends:
ii  perl  5.14.2-21

Versions of packages ntp suggests:
ii  ntp-doc  1:4.2.6.p5+dfsg-2

-- Configuration Files:
/etc/init.d/ntp changed:
PATH=/sbin:/bin:/usr/sbin:/usr/bin
. /lib/lsb/init-functions
DAEMON=/usr/sbin/ntpd
PIDFILE=/var/run/ntpd.pid
test -x $DAEMON || exit 5
if [ -r /etc/default/ntp ]; then
        . /etc/default/ntp
fi
if [ -e /var/lib/ntp/ntp.conf.dhcp ]; then
        NTPD_OPTS="$NTPD_OPTS -c /var/lib/ntp/ntp.conf.dhcp"
fi
LOCKFILE=/var/lock/ntpdate
lock_ntpdate() {
        if [ -x /usr/bin/lockfile-create ]; then
                lockfile-create $LOCKFILE
                lockfile-touch $LOCKFILE &
                LOCKTOUCHPID="$!"
        fi
}
unlock_ntpdate() {
        if [ -x /usr/bin/lockfile-create ] ; then
                kill $LOCKTOUCHPID
                lockfile-remove $LOCKFILE
        fi
}
RUNASUSER=ntp
UGID=$(getent passwd $RUNASUSER | cut -f 3,4 -d:) || true
if test "$(uname -s)" = "Linux"; then
        NTPD_OPTS="$NTPD_OPTS -u $UGID"
fi
case $1 in
        start)
                log_daemon_msg "Starting NTP server" "ntpd"
                if [ -z "$UGID" ]; then
                        log_failure_msg "user \"$RUNASUSER\" does not exist"
                        exit 1
                fi
                lock_ntpdate
                start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE 
--startas $DAEMON -- -p $PIDFILE $NTPD_OPTS
                status=$?
                unlock_ntpdate
                log_end_msg $status
                mutt root -s "don't forget to fix ntp" <<-HERE
                run /etc/ntp.keys/fix-ntp-servers.sh
                You will have to enter the password for each server.
                This is because of the roundrobin DNS for pool.ntp.debian.org.
                But you knew that!
                Clients won't sync until this is done.
                Dovecot might die when ntp syncs.
                Thankyouverymuch.
                HERE
                ;;
        stop)
                log_daemon_msg "Stopping NTP server" "ntpd"
                start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
                log_end_msg $?
                rm -f $PIDFILE
                ;;
        restart|force-reload)
                $0 stop && sleep 2 && $0 start
                ;;
        try-restart)
                if $0 status >/dev/null; then
                        $0 restart
                else
                        exit 0
                fi
                ;;
        reload)
                exit 3
                ;;
        status)
                status_of_proc $DAEMON "NTP server"
                ;;
        *)
                echo "Usage: $0 
{start|stop|restart|try-restart|force-reload|status}"
                exit 2
                ;;
esac

/etc/ntp.conf changed:
driftfile /var/lib/ntp/ntp.drift
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
server 0.debian.pool.ntp.org iburst
server 1.debian.pool.ntp.org iburst
server 2.debian.pool.ntp.org iburst
server 3.debian.pool.ntp.org iburst
interface listen ipv4 eth1
interface listen ipv4 eth2
interface ignore all eth0
restrict default ignore
restrict 127.0.0.1
restrict ::1
restrict 10.1.1.0 mask 255.255.255.0 nomodify nopeer
restrict 10.1.2.0 mask 255.255.255.0 nomodify nopeer
restrict 173.11.90.216 mask 255.255.255.248 nomodify nopeer
broadcast 10.1.1.255
broadcast 10.1.2.255
disable auth
trustedkey 1
requestkey 1


-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to