From 0d2f64e7cd013c5f9ef084f5bad1340a0ffe9f2c Mon Sep 17 00:00:00 2001 From: linggao Date: Wed, 8 Oct 2008 15:24:04 +0000 Subject: [PATCH] syslog fix for AIX git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2305 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/syslog | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/syslog b/xCAT/postscripts/syslog index da0f9a1bb..179d54784 100755 --- a/xCAT/postscripts/syslog +++ b/xCAT/postscripts/syslog @@ -208,7 +208,12 @@ fi #restart the syslog daemon to take the new conf file settings if [ $isLinux -eq 0 ]; then - refresh -s syslogd + PARSE_SRC_STATE="-e1d;s/.* \([a-zA-Z0-9]*\)$/\1/" + state=$(LC_ALL=C lssrc -s syslogd | LC_ALL=C sed "$PARSE_SRC_STATE") + if [[ -n "$state" && "$state" = "active" ]];then + stopsrc -s syslogd + fi + startsrc -s syslogd else $init restart fi