Addeed syslog setup.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@498 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
b13670dd1d
commit
8b2d19f070
@ -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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user