From 855c948bbdca89a57ac369e0e0887eb51aca6708 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 6 Oct 2009 16:46:18 +0000 Subject: [PATCH] -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 --- xCAT-server/sbin/xcatd | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index df94d2af7..468582efd 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -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`;