[13078] in Athena Bugs
Re: sun4 7.7K: syslogd
daemon@ATHENA.MIT.EDU (jweiss@MIT.EDU)
Thu Jan 5 21:21:55 1995
From: jweiss@MIT.EDU
Date: Thu, 5 Jan 1995 21:21:49 -0500
To: jhawk@MIT.EDU
Cc: bugs@MIT.EDU
In-Reply-To: [13070]
What's wrong:
syslogd does not seem to respond to syslogs.
Note the attached typescript. A funny anomaly is that
syslogd cannot bind to it's port; I have no idea why, there is
no syslogd running. It's not in the script, but /dev/klog doesn't
exist.
I find that in order to make syslogd work on my sun, I have to restart
it right after my machine boots. I actually have an rc file that runs
right after athena's and restarts it. I haven't had any problem's
with this kluge. I believe Solaris syslogd uses /dev/log not
/dev/klog.
Actually, I think you have a bigger problem in your test. You run
syslogd without a path. With root's default path you get
/usr/athena/bin/syslogd, rather that /usr/sbin/syslogd which was
started by the rc scripts. In fact, the symptoms you see of syslog
never logging anything but it's exit, sound very much like you're
using the wrong syslogd. This is a syslogd that has never worked on
Solaris. In fact, as I recall, if you run it, it removes the /dev/log
symlink, so the right syslogd will never work either! If you need to
put it back, the link should be (unless this is different between a
sparc classic and a sparc 5):
the-other-woman:/mit/bitbucket: ls -l /dev/log
lrwxrwxrwx 1 root root 27 Aug 24 13:21 /dev/log -> ../devices/pseudo/log@0:log
Jonathon
For reference here are the relevant parts of the rc script I use.
#!/sbin/sh
# $Header: /afs/athena.mit.edu/user/j/w/jweiss/personal/mystation/config/RCS/S91local.tow,v 1.1 94/08/24 15:30:34 jweiss Exp $
PATH=/usr/bin:/bin
case $1 in
'start')
# restart syslogd so it works
kill `cat /etc/syslog.pid`
/usr/sbin/syslogd
;;
'stop')
;;
*)
echo "usage: /etc/rc2.d/S91local {start|stop}"
;;
esac