version 1.1, 2004/05/19 16:04:12
|
version 1.4, 2004/07/06 20:52:18
|
Line 1
|
Line 1
|
<!DOCTYPE piml PUBLIC "-//TUX/DTD piml 1.0 Final//EN" |
<!DOCTYPE piml PUBLIC "-//TUX/DTD piml 1.0 Final//EN" |
"http://lpml.sourceforge.net/DTD/piml.dtd"> |
"http://lpml.sourceforge.net/DTD/piml.dtd"> |
<!-- check_ntp.piml --> |
<!-- ntpcheck.piml --> |
<!-- Matthew Hall --> |
<!-- Matthew Hall --> |
|
|
<!-- $Id$ --> |
<!-- $Id$ --> |
Line 43 if (! -e "/etc/init.d/ntpd") {
|
Line 43 if (! -e "/etc/init.d/ntpd") {
|
} |
} |
my $value = `/etc/init.d/ntpd status`; |
my $value = `/etc/init.d/ntpd status`; |
if ($value !~ / running/) { |
if ($value !~ / running/) { |
print "WARNING: npt is installed but is not currently running.\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 /etc/init.d/ntpd start\n"; |
} |
} |
# chkconfig barfs to stderr if the target isn't set up right. |
# chkconfig barfs to stderr if the target isn't set up right. |
my $restartchk = `/sbin/chkconfig --list ntpd 2>/dev/null`; |
my $restartchk = `/sbin/chkconfig --list ntpd 2>/dev/null`; |