ntp: drop the deprecated ntpdate
PATCH 1/1 ntp: drop the deprecated ntpdate
The combination of ntpd and sntp now implements the functions of ntpdate, which has been deprecated.
Now we don't need ntpdate anymore, and we can use the following command 'ntpd -q -g -x' instead.
So drop the related section of ntpdate now.
--- .../recipes-support/ntp/ntp/ntpdate | 59 ------------------- .../recipes-support/ntp/ntp/ntpdate.default | 7 --- .../recipes-support/ntp/ntp/ntpdate.service | 11 ---- .../recipes-support/ntp/ntp_4.2.8p15.bb | 47 +++------------ 4 files changed, 8 insertions(+), 116 deletions(-) delete mode 100755 meta-networking/recipes-support/ntp/ntp/ntpdate delete mode 100644 meta-networking/recipes-support/ntp/ntp/ntpdate.default delete mode 100644 meta-networking/recipes-support/ntp/ntp/ntpdate.service
meta-networking/recipes-support/ntp/ntp/ntpdate deleted +0 -59
@@ -1,59 +0,0 @@ -#!/bin/sh - -PATH=/sbin:/bin:/usr/bin:/usr/sbin - -test -x /usr/sbin/ntpdate || exit 0 - -if test -f /etc/default/ntpdate ; then -. /etc/default/ntpdate -fi - -if [ "$NTPSERVERS" = "" ] ; then - if [ "$METHOD" = "" -a "$1" != "silent" ] ; then - echo "Please set NTPSERVERS in /etc/default/ntpdate" - exit 1 - else - exit 0 - fi -fi - -# This is a heuristic: The idea is that if a static interface is brought -# up, that is a major event, and we can put in some extra effort to fix -# the system time. Feel free to change this, especially if you regularly -# bring up new network interfaces. -if [ "$METHOD" = static ]; then - OPTS="-b" -fi - -if [ "$METHOD" = loopback ]; then - exit 0 -fi - -( - -LOCKFILE=/var/lock/ntpdate - -# Avoid running more than one at a time -if [ -x /usr/bin/lockfile-create ]; then - lockfile-create $LOCKFILE - lockfile-touch $LOCKFILE & - LOCKTOUCHPID="$!" -fi - -if /usr/sbin/ntpdate -s $OPTS $NTPSERVERS 2>/dev/null; then - if [ "$UPDATE_HWCLOCK" = "yes" ]; then - hwclock --systohc || : - fi -fi - -if [ -x /usr/bin/lockfile-create ] ; then - kill $LOCKTOUCHPID - lockfile-remove $LOCKFILE -fi - -) & - -# wait for all subprocesses to finish -# this is required when using systemd service as ntpd will start before ntpdate finishes -# and results in a bind error (port 123) -wait
meta-networking/recipes-support/ntp/ntp/ntpdate.default deleted +0 -7
@@ -1,7 +0,0 @@ -# Configuration script used by ntpdate-sync script - -NTPSERVERS="" - -# Set to "yes" to write time to hardware clock on success -UPDATE_HWCLOCK="no" -
meta-networking/recipes-support/ntp/ntp/ntpdate.service deleted +0 -11
@@ -1,11 +0,0 @@ -[Unit] -Description=Network Time Service (one-shot ntpdate mode) -Before=ntpd.service - -[Service] -Type=oneshot -ExecStart=/usr/bin/ntpdate-sync silent -RemainAfterExit=yes - -[Install] -WantedBy=multi-user.target
meta-networking/recipes-support/ntp/ntp_4.2.8p15.bb +8 -39
112 lines not on this page · raw message
Signature · 1 line
2.39.0
I know this is an old topic, but I just noticed that ntpdate is still being built and packaged as part of ntp-utils. Is this intended, or should we rm -f ${D}${sbindir}/ntpdate in do_install (or patch ntpdate subdir out of Makefile.am)?
Br,
Michal
Quoted 5 lines · Michal Sieron via lists.openembedded.org
I know this is an old topic, but I just noticed that ntpdate is still being built and packaged as part of ntp-utils.
Is this intended, or should werm -f ${D}${sbindir}/ntpdateindo_install(or patch ntpdate subdir out of Makefile.am)?
hmm that should be fixed yes.
Quoted 15 lines
Br,
Michal-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#129362):
https://lists.openembedded.org/g/openembedded-devel/message/129362
Mute This Topic: https://lists.openembedded.org/mt/97643958/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-