version 1.7, 2005/04/13 18:54:32
|
version 1.8, 2005/10/05 18:00:44
|
Line 58 if ($restartchk eq '') {
|
Line 58 if ($restartchk eq '') {
|
} |
} |
if ($restartchk =~ /^error reading information on service / || |
if ($restartchk =~ /^error reading information on service / || |
$restartchk !~ /\d:(on|off)/) { |
$restartchk !~ /\d:(on|off)/) { |
print "**** WARNING: Unable to check status of ntpd with /sbin/chkconfig.\n"; |
print "**** WARNING: Unable to check status $NTPD with /sbin/chkconfig.\n"; |
exit; |
exit; |
} |
} |
if ($restartchk !~ /\s3:on/) { |
if ($restartchk !~ /\s3:on/) { |
Line 66 if ($restartchk !~ /\s3:on/) {
|
Line 66 if ($restartchk !~ /\s3:on/) {
|
exit; |
exit; |
} |
} |
if ($restartchk !~ /\s5:on/) { |
if ($restartchk !~ /\s5:on/) { |
print "**** WARNING: ntpd is not set to start at runlevel 5. To correct this run:\n/sbin/chkconfig --level 345 ntpd on\n"; |
print "**** WARNING: ntpd is not set to start at runlevel 5. To correct this run:\n/sbin/chkconfig --level 345 $NTPD on\n"; |
exit; |
exit; |
} |
} |
</perlscript> |
</perlscript> |