Diff for /doc/loncapafiles/ntpcheck.piml between versions 1.29 and 1.33

version 1.29, 2017/03/29 20:48:25 version 1.33, 2018/06/19 12:26:32
Line 46  if (('<DIST />' eq 'fedora15')    || ('< Line 46  if (('<DIST />' eq 'fedora15')    || ('<
     ('<DIST />' eq 'fedora19')    || ('<DIST />' eq 'fedora20') ||      ('<DIST />' eq 'fedora19')    || ('<DIST />' eq 'fedora20') ||
     ('<DIST />' eq 'fedora21')    || ('<DIST />' eq 'fedora22') ||      ('<DIST />' eq 'fedora21')    || ('<DIST />' eq 'fedora22') ||
     ('<DIST />' eq 'fedora23')    || ('<DIST />' eq 'fedora24') ||      ('<DIST />' eq 'fedora23')    || ('<DIST />' eq 'fedora24') ||
     ('<DIST />' eq 'fedora25')    || ('<DIST />' eq 'rhes7')    ||      ('<DIST />' eq 'fedora25')    || ('<DIST />' eq 'fedora26') ||
     ('<DIST />' eq 'scientific7') || ('<DIST />' eq 'centos7')  ||      ('<DIST />' eq 'fedora27')    || ('<DIST />' eq 'fedora28') ||
     ('<DIST />' eq 'sles12')) {      ('<DIST />' eq 'centos7')     || ('<DIST />' eq 'rhes7')    ||
       ('<DIST />' eq 'scientific7') || ('<DIST />' eq 'sles12')   ||
       ('<DIST />' eq 'ubuntu18')) {
     $NTPD = 'ntpd';      $NTPD = 'ntpd';
     $startntpcmd = 'systemctl start ntpd.service';      if ('<DIST />' eq 'ubuntu18') {
     if (!-e '/usr/sbin/ntpd') {          $NTPD = 'ntp'; 
       }
       $startntpcmd = "systemctl start $NTPD.service";
       if (!-e "/usr/sbin/$NTPD") {
         print "ntp is not installed.\n";          print "ntp is not installed.\n";
         exit;          exit;
     }      }
Line 66  if (('<DIST />' eq 'fedora15')    || ('< Line 71  if (('<DIST />' eq 'fedora15')    || ('<
         print "ntp is not installed.\n";          print "ntp is not installed.\n";
         exit;          exit;
     }      }
     $startntpcnd = "/etc/init.d/$NTPD start";      $startntpcmd = "/etc/init.d/$NTPD start";
 }  }
   
 if (open(PIPE,'-|',$checkcmd)) {  if (open(PIPE,'-|',$checkcmd)) {
Line 87  if (('<DIST />' eq 'fedora15')    || ('< Line 92  if (('<DIST />' eq 'fedora15')    || ('<
     ('<DIST />' eq 'fedora17')    || ('<DIST />' eq 'fedora18') ||      ('<DIST />' eq 'fedora17')    || ('<DIST />' eq 'fedora18') ||
     ('<DIST />' eq 'fedora19')    || ('<DIST />' eq 'fedora20') ||      ('<DIST />' eq 'fedora19')    || ('<DIST />' eq 'fedora20') ||
     ('<DIST />' eq 'fedora21')    || ('<DIST />' eq 'fedora22') ||      ('<DIST />' eq 'fedora21')    || ('<DIST />' eq 'fedora22') ||
     ('<DIST />' eq 'fedora23')    || ('<DIST />' eq 'fedora24') ||       ('<DIST />' eq 'fedora23')    || ('<DIST />' eq 'fedora24') ||
     ('<DIST />' eq 'fedora25')    || ('<DIST />' eq 'rhes7')    ||      ('<DIST />' eq 'fedora25')    || ('<DIST />' eq 'fedora26') ||
     ('<DIST />' eq 'scientific7') || ('<DIST />' eq 'centos7')  ||      ('<DIST />' eq 'fedora27')    || ('<DIST />' eq 'fedora28') ||
     ('<DIST />' eq 'sles12')) {      ('<DIST />' eq 'centos7')     || ('<DIST />' eq 'rhes7')    ||
     if (!-l "/etc/systemd/system/multi-user.target.wants/ntpd.service") {        ('<DIST />' eq 'scientific7') || ('<DIST />' eq 'sles12') ||
         print "**** WARNING: ntpd is not configured to run at boot.  To correct this run:\nsystemctl enable ntpd.service\n";      ('<DIST />' eq 'ubuntu18')) {
       if (!-l "/etc/systemd/system/multi-user.target.wants/$NTPD.service") {  
           print "**** WARNING: $NTPD is not configured to run at boot.  To correct this run:\nsystemctl enable $NTPD.service\n";
     }      }
     exit;      exit;
 } else {  } else {

Removed from v.1.29  
changed lines
  Added in v.1.33


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