-If syslog cannot be found on a system, do not try to use it

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4313 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-10-06 16:46:18 +00:00
parent 5e00fb4528
commit 855c948bbd

View File

@ -95,9 +95,11 @@ if (xCAT::Utils->isLinux()) {
if (-f "/etc/fedora-release") {
$init_file="/etc/init.d/rsyslog";
}
my $result=`$init_file status 2>&1`;
if ($result !~ /running/i) {
`$init_file start`;
if ( -x $init_file ) {
my $result=`$init_file status 2>&1`;
if ($result !~ /running/i) {
`$init_file start`;
}
}
} else {
my $result=`lssrc -s syslogd 2>&1`;