From 8a476a618b76cc535027e176500683011930dcd6 Mon Sep 17 00:00:00 2001 From: immarvin Date: Wed, 29 May 2013 12:21:38 +0000 Subject: [PATCH] fix defect #3599 syslog-ng is shutting down in sles xCAT MN Edit, enable the settings that will log to local files in syslog-ng git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16458 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/syslog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT/postscripts/syslog b/xCAT/postscripts/syslog index 7a2daabe4..5c97485bc 100755 --- a/xCAT/postscripts/syslog +++ b/xCAT/postscripts/syslog @@ -237,6 +237,12 @@ else echo "# xCAT settings" >> $conf_file echo "*.debug /var/log/messages rotate 1024K files 5" >> $conf_file fi + else + # enable the settings that will log to local files in syslog-ng + sed -i '/destination messages/s/^#*//' $conf_file + sed -i '/destination(messages)/s/^#*//' $conf_file + sed -i '/destination warn/s/^#*//' $conf_file + sed -i '/destination(warn)/s/^#*//' $conf_file fi #Ubuntu doesn't have sysconfig