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

Bug#4432: /etc/cron.weekly/xntp test for xntp in wrong place



Package: xntp
Version: 3.5c-1

  Please find enclosed a patch that moves the test for the existence
  of the xntp binary outside of the case statement since it is also
  necessary when stopping xntp as well.

libc.so.5.2.18
perl 5.003
Linux 2.0.0
Debian 1.1.5 + rex

Bill Wohler <wohler@newt.com>   ph: +1-415-854-1857  fax: +1-415-854-3195
Say it with MIME.  Maintainer of comp.mail.mh and news.software.nn FAQs.
If you're passed on the right, you're in the wrong lane.

*** xntp	1996/09/04 04:49:14	1.1
--- xntp	1996/09/04 04:49:36
***************
*** 1,9 ****
  #! /bin/sh
  # /etc/init.d/xntp: start xntp daemon.
  
  case "$1" in
    start)
-     test -f /usr/sbin/xntpd || exit 0
      #ntpdate
      start-stop-daemon --start --verbose --exec /usr/sbin/xntpd
      ;;
--- 1,10 ----
  #! /bin/sh
  # /etc/init.d/xntp: start xntp daemon.
  
+ test -f /usr/sbin/xntpd || exit 0
+ 
  case "$1" in
    start)
      #ntpdate
      start-stop-daemon --start --verbose --exec /usr/sbin/xntpd
      ;;



Reply to: