From b13670dd1d8cafe2dbd1acce21173b249c565924 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 18 Feb 2008 13:11:05 +0000 Subject: [PATCH] Add setup of syslog for xCAT git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@497 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCATsn/xCATsn.spec | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/xCATsn/xCATsn.spec b/xCATsn/xCATsn.spec index d50e8c463..19fe9e020 100644 --- a/xCATsn/xCATsn.spec +++ b/xCATsn/xCATsn.spec @@ -53,11 +53,25 @@ if [ "$1" = "1" ]; then #Only if installing for the first time.. if ! grep /install /etc/exports; then echo '/install *(ro,no_root_squash,sync)' >> /etc/exports #SECURITY: this has potential for sharing private host/user keys service nfs restart - chkconfig nfs on fi - - ### Start the xcatd daemon +# makes it a service node + touch /etc/xCATSN +# 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 + + /etc/rc.d/init.d/syslog stop + /etc/rc.d/init.d/syslog start + + + + +### Start the xcatd daemon XCATROOT=$RPM_INSTALL_PREFIX0 /etc/init.d/xcatd start service httpd restart