[11306] in Athena Bugs
decmips 7.6G: mkserv ops (ops.add)
daemon@ATHENA.MIT.EDU (jweiss@MIT.EDU)
Fri Oct 29 17:21:39 1993
From: jweiss@MIT.EDU
To: bugs@MIT.EDU
Cc: op@MIT.EDU
Date: Fri, 29 Oct 93 17:21:28 EDT
System name: tla
Type and version: KN01 7.6G (1 update(s) to same version)
Display type: PMAX-MFB
What were you trying to do?
run mkserv ops on a server
What's wrong:
It failed to edit elcsd.conf so that error logs would go
to syslogger.mit.edu.
Please describe any relevant documentation references:
Please apply the following patch to the 7.4 and 7.6 versions
of ops.add (I've tested it on a maxine).
*** /mit/mkserv/services/7.6/ops.add Thu Aug 20 17:06:23 1992
--- optest.add Fri Oct 29 16:52:01 1993
***************
*** 68,79 ****
if [ "$mach" = "decmips" ]; then
! echo -n "Editing /etc/nsyslog.conf..."
sed -n -e 's/@WSLOGGER.MIT.EDU/@SYSLOGGER.MIT.EDU/' \
-e p /srvd/etc/nsyslog.conf > /tmp/nsyslog.conf
if [ ! -f /etc/nsyslog.conf.old ]; then
mv -f /etc/nsyslog.conf /etc/nsyslog.conf.old
fi
# Check to see if we are SYSLOGGER or WSLOGGER
hostsys="`hostinfo -h syslogger.mit.edu|tr A-Z a-z`"
hostws="`hostinfo -h wslogger.mit.edu|tr A-Z a-z`"
--- 68,84 ----
if [ "$mach" = "decmips" ]; then
! echo -n "Editing /etc/nsyslog.conf and /etc/elcsd.conf..."
sed -n -e 's/@WSLOGGER.MIT.EDU/@SYSLOGGER.MIT.EDU/' \
-e p /srvd/etc/nsyslog.conf > /tmp/nsyslog.conf
if [ ! -f /etc/nsyslog.conf.old ]; then
mv -f /etc/nsyslog.conf /etc/nsyslog.conf.old
fi
+ sed -n -e 's/dslogger/syslogger/' \
+ -e p /srvd/etc/elcsd.conf > /tmp/elcsd.conf
+ if [ ! -f /etc/elcsd.conf.old ]; then
+ mv -f /etc/elcsd.conf /etc/elcsd.conf.old
+ fi
# Check to see if we are SYSLOGGER or WSLOGGER
hostsys="`hostinfo -h syslogger.mit.edu|tr A-Z a-z`"
hostws="`hostinfo -h wslogger.mit.edu|tr A-Z a-z`"
***************
*** 80,91 ****
hostl="`hostname`"
hostlc="`hostinfo -h $hostl|tr A-Z a-z`"
if [ "$hostlc" = "$hostws" -o "$hostlc" = "$hostsys" ]; then
! echo -n "Editing rc and nsyslog.conf for LOGGER configuration..."
sed -n -e '/@.*LOGGER/d' \
-e p /tmp/nsyslog.conf > /tmp/nsyslog.conf.new
mv -f /tmp/nsyslog.conf.new /tmp/nsyslog.conf
fi
mv -f /tmp/nsyslog.conf /etc/nsyslog.conf
echo done.
else
echo -n "Editing /etc/syslog.conf..."
--- 85,101 ----
hostl="`hostname`"
hostlc="`hostinfo -h $hostl|tr A-Z a-z`"
if [ "$hostlc" = "$hostws" -o "$hostlc" = "$hostsys" ]; then
! echo -n "Editing elcsd.conf and nsyslog.conf for LOGGER configuration..."
sed -n -e '/@.*LOGGER/d' \
-e p /tmp/nsyslog.conf > /tmp/nsyslog.conf.new
mv -f /tmp/nsyslog.conf.new /tmp/nsyslog.conf
+ sed -n -e '/^syslogger/s/syslogger/ /' \
+ -e '/^5/s/^5/3/' \
+ -e p /tmp/elcsd.conf > /tmp/elcsd.conf.new
+ mv -f /tmp/elcsd.conf.new /tmp/elcsd.conf
fi
mv -f /tmp/nsyslog.conf /etc/nsyslog.conf
+ mv -f /tmp/elcsd.conf /etc/elcsd.conf
echo done.
else
echo -n "Editing /etc/syslog.conf..."