2 # 980904 Harlan Stenn - created
8 $ntp_conf = "/etc/ntp.conf";
9 $ntpd = "/usr/local/bin/xntpd";
10 $ntpdate = "/usr/local/bin/ntpdate -b -s 10.0.0.1 10.0.0.2";
12 # ^^^ CHANGE THESE ^^^
18 elsif ($ARGV[0] eq "start")
20 @pidlist = pidlist
($ntpd);
21 if (defined(@pidlist))
23 warn "NTP is already running\n";
27 if ( -f
$ntp_conf && -x
$ntpd )
30 system ($ntpd." -c ".$ntp_conf);
34 elsif ($ARGV[0] eq "stop")
36 @pidlist = pidlist
($ntpd);
37 kill 'TERM', @pidlist if (scalar(@pidlist) > 0);
41 die "Usage: $0 {start,stop}\n";
48 my ($qt) = quotemeta($target);
51 open(PS
, $ps) || die "Can't run ps: $!\n";