Package: ntpdate
Version: 1:4.2.0a+stable-2
Severity: wishlist
The man page says ntpdate should run hourly, but the package does not supply
a cronjob
#!/usr/bin/perl
use strict;
use warnings;
my $GIVE_UP_AFTER_NUMBER = 10;
my $cmd = '/usr/sbin/ntpdate pool.ntp.org 2>&1';
my ( $count, $success, $output, $result ) = qw/0 0/;
# sometimes ntpupdate doesn't find a ntp server
# lets try a few times before letting cron
# send an annoying email msg
while ( !$success && ( $count < $GIVE_UP_AFTER_NUMBER ) ) {
sleep(10);
$count++;
$output = `$cmd`;
$result = $?;
$success = ( $result == 0 );
}
######## EOF ###########
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (650, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.18.20040416c
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages ntpdate depends on:
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]