for me:
hidde@system:~$ apt-cache show ntpdate |grep Version: Version: 1:4.2.0a+stable-8ubuntu1
root@system:~# sh -x /etc/init.d/ntpdate start + PATH=/sbin:/bin + test -f /usr/sbin/ntpdate + test -f /etc/default/ntpdate + . /etc/default/ntpdate ++ NTPSERVERS=ntp.ubuntulinux.org ++ NTPOPTIONS=-u + test -n ntp.ubuntulinux.org + . /lib/lsb/init-functions + case "$1" in + log_begin_msg 'Synchronizing clock to ntp.ubuntulinux.org...' + '[' -z 'Synchronizing clock to ntp.ubuntulinux.org...' ']' + type usplash_write + usplash_write 'TEXT Synchronizing clock to ntp.ubuntulinux.org...' + echo ' * Synchronizing clock to ntp.ubuntulinux.org...' * Synchronizing clock to ntp.ubuntulinux.org... + /usr/sbin/ntpdate -b -s -u ntp.ubuntulinux.org + log_end_msg 0 + '[' -z 0 ']' + type usplash_write + '[' 0 -eq 0 ']' + usplash_write 'SUCCESS ok' + TPUT=/usr/bin/tput + EXPR=/usr/bin/expr + '[' -x /usr/bin/tput ']' + '[' -x /usr/bin/expr ']' + /usr/bin/tput hpa 60 ++ /usr/bin/tput cols + COLS=129 + '[' -n 129 ']' ++ /usr/bin/expr 129 - 7 + COL=122 ++ /us'/bin/tput cuu1 ++ /usr/bin/tput hpa 122 + END=' ' ++ /usr/bin/tput hpa 0 ' START=' ++ /usr/bin/tput setaf 1 + RED='' ++ /usr/bin/tput op + NORMAL='' + '[' 0 -eq 0 ']' [ ok ]'+ return 0 + exit 0 root@system:~#
root@system:~# strace -o strace.txt -tt /usr/sbin/ntpdate -b -s -u ntp.ubuntulinux.org root@system:~#
uploading strace
for me:
hidde@system:~$ apt-cache show ntpdate |grep Version: stable- 8ubuntu1
Version: 1:4.2.0a+
root@system:~# sh -x /etc/init.d/ntpdate start ntpdate ntpdate ntp.ubuntulinux .org init-functions .org... ' .org... ' ']' .org... ' .org... ' .org...
'
[ ok ]'+ return 0
+ PATH=/sbin:/bin
+ test -f /usr/sbin/ntpdate
+ test -f /etc/default/
+ . /etc/default/
++ NTPSERVERS=
++ NTPOPTIONS=-u
+ test -n ntp.ubuntulinux.org
+ . /lib/lsb/
+ case "$1" in
+ log_begin_msg 'Synchronizing clock to ntp.ubuntulinux
+ '[' -z 'Synchronizing clock to ntp.ubuntulinux
+ type usplash_write
+ usplash_write 'TEXT Synchronizing clock to ntp.ubuntulinux
+ echo ' * Synchronizing clock to ntp.ubuntulinux
* Synchronizing clock to ntp.ubuntulinux
+ /usr/sbin/ntpdate -b -s -u ntp.ubuntulinux.org
+ log_end_msg 0
+ '[' -z 0 ']'
+ type usplash_write
+ '[' 0 -eq 0 ']'
+ usplash_write 'SUCCESS ok'
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
++ /usr/bin/tput cols
+ COLS=129
+ '[' -n 129 ']'
++ /usr/bin/expr 129 - 7
+ COL=122
++ /us'/bin/tput cuu1
++ /usr/bin/tput hpa 122
+ END='
++ /usr/bin/tput hpa 0
' START='
++ /usr/bin/tput setaf 1
+ RED=''
++ /usr/bin/tput op
+ NORMAL=''
+ '[' 0 -eq 0 ']'
+ exit 0
root@system:~#
root@system:~# strace -o strace.txt -tt /usr/sbin/ntpdate -b -s -u
ntp.ubuntulinux.org
root@system:~#
uploading strace