[LON-CAPA-cvs] cvs: doc /loncapafiles ntpcheck.piml
raeburn
raeburn at source.lon-capa.org
Sun May 26 20:24:30 EDT 2019
raeburn Mon May 27 00:24:30 2019 EDT
Modified files:
/doc/loncapafiles ntpcheck.piml
Log:
- Support Fedora 29 and 30.
- Appropriate message if chrony in use instead of ntp (i.e., sles15).
Index: doc/loncapafiles/ntpcheck.piml
diff -u doc/loncapafiles/ntpcheck.piml:1.34 doc/loncapafiles/ntpcheck.piml:1.35
--- doc/loncapafiles/ntpcheck.piml:1.34 Sat Feb 9 16:55:14 2019
+++ doc/loncapafiles/ntpcheck.piml Mon May 27 00:24:30 2019
@@ -3,7 +3,7 @@
<!-- ntpcheck.piml -->
<!-- Matthew Hall -->
-<!-- $Id: ntpcheck.piml,v 1.34 2019/02/09 16:55:14 raeburn Exp $ -->
+<!-- $Id: ntpcheck.piml,v 1.35 2019/05/27 00:24:30 raeburn Exp $ -->
<!--
@@ -36,7 +36,11 @@
<target dist="default"></target>
<perlscript mode="fg">
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";
+if ('<DIST />' eq 'sles15') {
+ print "For more information on chronyd please see https://chrony.tuxfamily.org/\n";
+} else {
+ print "For more information on ntpd please see http://www.ntp.org/\n";
+}
my $NTPD;
my $name = 'ntp';
my $checkcmd = 'ps -ef |grep ntp |grep -v grep |grep -v ntpcheck';
@@ -49,12 +53,13 @@
('<DIST />' eq 'fedora23') || ('<DIST />' eq 'fedora24') ||
('<DIST />' eq 'fedora25') || ('<DIST />' eq 'fedora26') ||
('<DIST />' eq 'fedora27') || ('<DIST />' eq 'fedora28') ||
+ ('<DIST />' eq 'fedora29') || ('<DIST />' eq 'fedora30') ||
('<DIST />' eq 'centos7') || ('<DIST />' eq 'rhes7') ||
('<DIST />' eq 'scientific7') || ('<DIST />' eq 'sles12') ||
('<DIST />' eq 'sles15') || ('<DIST />' eq 'ubuntu18')) {
$NTPD = 'ntpd';
if ('<DIST />' eq 'ubuntu18') {
- $NTPD = 'ntp';
+ $NTPD = 'ntp';
} elsif ('<DIST />' eq 'sles15') {
$NTPD = 'chronyd';
$name = $NTPD;
@@ -104,6 +109,7 @@
('<DIST />' eq 'fedora23') || ('<DIST />' eq 'fedora24') ||
('<DIST />' eq 'fedora25') || ('<DIST />' eq 'fedora26') ||
('<DIST />' eq 'fedora27') || ('<DIST />' eq 'fedora28') ||
+ ('<DIST />' eq 'fedora29') || ('<DIST />' eq 'fedora30') ||
('<DIST />' eq 'centos7') || ('<DIST />' eq 'rhes7') ||
('<DIST />' eq 'scientific7') || ('<DIST />' eq 'sles12') ||
('<DIST />' eq 'sles15') || ('<DIST />' eq 'ubuntu18')) {
More information about the LON-CAPA-cvs
mailing list