[LON-CAPA-cvs] cvs: doc /loncapafiles ntpcheck.piml
goltermann
goltermann at source.lon-capa.org
Wed Oct 26 07:48:39 EDT 2011
goltermann Wed Oct 26 11:48:39 2011 EDT
Modified files:
/doc/loncapafiles ntpcheck.piml
Log:
Eliminated language dependencies which eventuated in a wrong error message for servers with non-english root bash.
Tested only with CentOS5
Index: doc/loncapafiles/ntpcheck.piml
diff -u doc/loncapafiles/ntpcheck.piml:1.13 doc/loncapafiles/ntpcheck.piml:1.14
--- doc/loncapafiles/ntpcheck.piml:1.13 Tue Oct 25 13:01:32 2011
+++ doc/loncapafiles/ntpcheck.piml Wed Oct 26 11:48:39 2011
@@ -3,7 +3,7 @@
<!-- ntpcheck.piml -->
<!-- Matthew Hall -->
-<!-- $Id: ntpcheck.piml,v 1.13 2011/10/25 13:01:32 raeburn Exp $ -->
+<!-- $Id: ntpcheck.piml,v 1.14 2011/10/26 11:48:39 goltermann Exp $ -->
<!--
@@ -74,7 +74,7 @@
exit;
}
my $value = `/etc/init.d/$NTPD status`;
- if ($value !~ /running/) {
+ if ($value !~ /pid \d*)/i) {
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 /etc/init.d/$NTPD start\n";
}
}
More information about the LON-CAPA-cvs
mailing list