version 1.1, 2004/05/19 16:04:12
|
version 1.3, 2004/06/08 23:16:03
|
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.\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`; |