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
This commit is contained in:
parent
7c9c0bcba8
commit
b13670dd1d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user