ConfigLogging () { ### Configure logging for the cluster.
-if ! cat /etc/hostname|grep -q logger
+if ! cat /etc/hostname|grep -q logger ### non-logger boxes. logging clients
then
if [ -e /etc/rsyslog.d ]
then
echo "mail.* @@logger01.CLUSTER_DOMAINNAME:514" >> /etc/rsyslog.d/60-evergreen-ils.conf
fi
fi
-else
+else ### setup logging services on this host.
echo
echo "Setting up logging for the cluster on this host"
sleep 2
sed -i 's/^#$InputUDPServerRun 514/$InputUDPServerRun 514/g' /etc/rsyslog.conf
sed -i 's/^#$ModLoad imtcp/$ModLoad imtcp/g' /etc/rsyslog.conf
sed -i 's/^#$InputTCPServerRun 514/$InputTCPServerRun 514/g' /etc/rsyslog.conf
+ sed -i 's/$PrivDropToUser/#$PrivDropToUser/g' /etc/rsyslog.conf
+ sed -i 's/$PrivDropToGroup/#$PrivDropToGroup/g' /etc/rsyslog.conf
echo "alias findlogs=\"cd /var/log/evergreen/\\\$(date +%Y/%m/%d) && pwd\"" >> /root/.bashrc
echo "alias osrfwarn=\"findlogs && tail -f osrfwarn.log | grep -v 'File does not exist' | grep -v 'config.hard_due_date'\"" >> /root/.bashrc
echo "alias osrferror=\"findlogs && tail -f osrferror.log | grep -v 'File does not exist'\"" >> /root/.bashrc