From 8b2d19f070e19fedc998a97ebf8ea4e10218007e Mon Sep 17 00:00:00 2001 From: nott Date: Mon, 18 Feb 2008 13:14:29 +0000 Subject: [PATCH] Addeed syslog setup. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@498 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/sbin/xcatconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/xCAT-server-2.0/sbin/xcatconfig b/xCAT-server-2.0/sbin/xcatconfig index e946ede46..b1226983c 100644 --- a/xCAT-server-2.0/sbin/xcatconfig +++ b/xCAT-server-2.0/sbin/xcatconfig @@ -368,6 +368,22 @@ if (( ! -r "/etc/xcat/policy.sqlite" ) || $::FORCE) { } } +# setup syslog +cp /etc/syslog.conf /etc/syslog.conf.ORIG +echo "*.debug /var/log/localmessages" > /etc/test.tmp +echo "*.crit /var/log/localmessages" >> /etc/test.tmp +cat /etc/test.tmp >> /etc/syslog.conf +rm /etc/test.tmp +touch /var/log/localmessages + +if ($::osname eq 'AIX') { + stopsrc -s syslogd + startsrc -s syslogd +} else { + /etc/rc.d/init.d/syslog stop + /etc/rc.d/init.d/syslog start +} + # # set up the certificates for xcatd #