Diff for /doc/loncapafiles/ntpcheck.piml between versions 1.25 and 1.27

version 1.25, 2015/01/01 00:24:17 version 1.27, 2016/05/22 23:15:28
Line 38  http://www.lon-capa.org/ Line 38  http://www.lon-capa.org/
 print "Checking to be sure the Network Time Protocol is running properly.\n";  print "Checking to be sure the Network Time Protocol is running properly.\n";
 print "For more information on ntpd please see http://www.ntp.org/\n";  print "For more information on ntpd please see http://www.ntp.org/\n";
 my $NTPD;  my $NTPD;
 my $checkcmd = 'ps -ef |grep ntp |grep -v grep';  my $checkcmd = 'ps -ef |grep ntp |grep -v grep |grep -v ntpcheck';
 my $startntpcmd;  my $startntpcmd;
 my $is_running;  my $is_running;
 if (('<DIST />' eq 'fedora15') || ('<DIST />' eq 'fedora16')    ||  if (('<DIST />' eq 'fedora15') || ('<DIST />' eq 'fedora16')    ||
Line 73  if (open(PIPE,'-|',$checkcmd)) { Line 73  if (open(PIPE,'-|',$checkcmd)) {
     close(PIPE);      close(PIPE);
     if (!$is_running) {      if (!$is_running) {
         print "WARNING: ntp is installed but is not currently running.\nPlease verify the configuration of ntp in /etc/ntp.conf and /etc/ntp/step-tickers\nStart ntp by executing\n $startntpcmd\n";          print "WARNING: ntp is installed but is not currently running.\nPlease verify the configuration of ntp in /etc/ntp.conf and /etc/ntp/step-tickers\nStart ntp by executing\n $startntpcmd\n";
       } else {
           print "ntp is installed and running\n";
     }      }
 } else {  } else {
     print "Could not determine ntp status.\n";      print "Could not determine ntp status.\n";
Line 94  if (('<DIST />' eq 'fedora15') || ('<DIS Line 96  if (('<DIST />' eq 'fedora15') || ('<DIS
     my $restartchk;      my $restartchk;
     if (('<DIST />' eq 'debian5') || ('<DIST />' eq 'debian6') || ('<DIST />' eq 'ubuntu6') ||       if (('<DIST />' eq 'debian5') || ('<DIST />' eq 'debian6') || ('<DIST />' eq 'ubuntu6') || 
         ('<DIST />' eq 'ubuntu8') || ('<DIST />' eq 'ubuntu10') || ('<DIST />' eq 'ubuntu12') ||           ('<DIST />' eq 'ubuntu8') || ('<DIST />' eq 'ubuntu10') || ('<DIST />' eq 'ubuntu12') || 
         ('<DIST />' eq 'ubuntu14')) {          ('<DIST />' eq 'ubuntu14') || ('<DIST />' eq 'ubuntu16')) {
         $checking_bin = '/usr/sbin/sysv-rc-conf';          $checking_bin = '/usr/sbin/sysv-rc-conf';
     } else {      } else {
         $checking_bin = '/sbin/chkconfig';          $checking_bin = '/sbin/chkconfig';

Removed from v.1.25  
changed lines
  Added in v.1.27


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