Diff for /doc/loncapafiles/ntpcheck.piml between versions 1.7 and 1.9

version 1.7, 2005/04/13 18:54:32 version 1.9, 2006/09/15 20:54:55
Line 42  if (-e "/etc/init.d/ntpd") { Line 42  if (-e "/etc/init.d/ntpd") {
    $NTPD = "ntpd";     $NTPD = "ntpd";
 } elsif (-e "/etc/init.d/xntpd") {  } elsif (-e "/etc/init.d/xntpd") {
    $NTPD = "xntpd";     $NTPD = "xntpd";
   } elsif (-e "/etc/init.d/ntp") {
      $NTPD = "ntp"; 
 } else {  } else {
     print "ntp is not installed.\n";      print "ntp is not installed.\n";
     exit;      exit;
Line 58  if ($restartchk eq '') { Line 60  if ($restartchk eq '') {
 }  }
 if ($restartchk =~ /^error reading information on service / ||  if ($restartchk =~ /^error reading information on service / ||
     $restartchk !~ /\d:(on|off)/) {      $restartchk !~ /\d:(on|off)/) {
     print "**** WARNING: Unable to check status of ntpd with /sbin/chkconfig.\n";      print "**** WARNING: Unable to check status $NTPD with /sbin/chkconfig.\n";
     exit;      exit;
 }  }
 if ($restartchk !~ /\s3:on/) {  if ($restartchk !~ /\s3:on/) {
Line 66  if ($restartchk !~ /\s3:on/) { Line 68  if ($restartchk !~ /\s3:on/) {
     exit;      exit;
 }  }
 if ($restartchk !~ /\s5:on/) {  if ($restartchk !~ /\s5:on/) {
     print "**** WARNING: ntpd is not set to start at runlevel 5.  To correct this run:\n/sbin/chkconfig --level 345 ntpd on\n";      print "**** WARNING: ntpd is not set to start at runlevel 5.  To correct this run:\n/sbin/chkconfig --level 345 $NTPD on\n";
     exit;      exit;
 }  }
 </perlscript>  </perlscript>

Removed from v.1.7  
changed lines
  Added in v.1.9


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>