# New after.rpms.sh script for farms Fermi Linux 7.3. S. Timm 11/22/2002 # echo "Farms install completed on `date`" > /var/log/instver.log echo "/sbin/ifconfig -a " >> /var/log/instver.log #********************************************** # /etc/syslog.conf #********************************************** # cd /etc if [ "$(grep "auth.* /var/log/secure" /etc/syslog.conf)" = "" ] ; then csplit -f auth syslog.conf /"var/log/secure"/+1 echo "auth.* /var/log/secure" >> auth00 cat auth01 >> auth00 mv auth00 syslog.conf rm auth01 fi #********************************************** # Configure PCP so that it doesn't fail on startup. #********************************************** /usr/sbin/install-pcp-config generic ############################################### #Enable and disable services ############################################## /sbin/chkconfig sendmail off /sbin/chkconfig kudzu off /sbin/chkconfig apmd off /sbin/chkconfig xfs off /sbin/chkconfig rhnsd off /sbin/chkconfig rstatd on /sbin/chkconfig eklogin on /sbin/chkconfig klogin on /sbin/chkconfig kshell on /sbin/chkconfig telnet on /sbin/chkconfig sgi_fam off /sbin/chkconfig cups off /sbin/chkconfig pcmcia off /sbin/chkconfig isdn off /sbin/chkconfig saslauthd off ######################################################## # Run Voldemort's PULLRSYNC client ####################################################### HOSTNAME="$(grep HOSTNAME /etc/sysconfig/network | grep -v DHCP | cut -d'=' -f2 | cut -d'.' -f1)" echo $HOSTNAME > /tmp/hostname if [ -e /sbin/pullrsync ] then /sbin/pullrsync -H $HOSTNAME -I fi #need to figure out how to handle the error condition.