[LON-CAPA-cvs] cvs: doc /loncapafiles ntpcheck.piml

raeburn raeburn at source.lon-capa.org
Tue Jan 21 11:31:27 EST 2020


raeburn		Tue Jan 21 16:31:27 2020 EDT

  Modified files:              
    /doc/loncapafiles	ntpcheck.piml 
  Log:
  - Correction to changes in rev. 1.42.
  
  
Index: doc/loncapafiles/ntpcheck.piml
diff -u doc/loncapafiles/ntpcheck.piml:1.44 doc/loncapafiles/ntpcheck.piml:1.45
--- doc/loncapafiles/ntpcheck.piml:1.44	Sat Jan 18 20:42:08 2020
+++ doc/loncapafiles/ntpcheck.piml	Tue Jan 21 16:31:27 2020
@@ -3,7 +3,7 @@
 <!-- ntpcheck.piml -->
 <!-- Matthew Hall -->
 
-<!-- $Id: ntpcheck.piml,v 1.44 2020/01/18 20:42:08 raeburn Exp $ -->
+<!-- $Id: ntpcheck.piml,v 1.45 2020/01/21 16:31:27 raeburn Exp $ -->
 
 <!--
 
@@ -49,7 +49,6 @@
 }
 my $NTPD;
 my $name = 'ntp';
-my $binname = $name;
 my $checkcmd = 'ps -ef |grep ntp |grep -v grep |grep -v ntpcheck';
 my $startntpcmd;
 my $is_running;
@@ -68,7 +67,7 @@
     ('<DIST />' eq 'ubuntu20')    || ('<DIST />' eq 'rhes8')    || 
     ('<DIST />' eq 'centos8')     || ('<DIST />' eq 'oracle8')) { 
     $NTPD = 'ntpd';
-    $binname = $NTPD;
+    my $binname = $NTPD;
     if (('<DIST />' eq 'ubuntu18') || ('<DIST />' eq 'ubuntu20')) {
         $NTPD = 'chrony';
         $name = $NTPD;
@@ -81,6 +80,7 @@
              ('<DIST />' eq 'oracle8')) {
         $NTPD = 'chronyd';
         $name = $NTPD;
+        $binname = $NTPD;
     }
     $checkcmd = "systemctl is-enabled $NTPD.service";
     $startntpcmd = "systemctl start $NTPD.service";




More information about the LON-CAPA-cvs mailing list