Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 1996 11:27:20 +0100 (MET)
From:      J Wunsch <j@ida.interface-business.de>
To:        freebsd-current@FreeBSD.org (FreeBSD-current users)
Subject:   /dev/log changes
Message-ID:  <199610281027.LAA18548@ida.interface-business.de>

next in thread | raw e-mail | index | archive | help
CHANGE REQUIRED:

I've finally corrected Julian's patches for the transition from
/dev/log to /var/run/log.  syslogd(8) no longer attempts to create the
transitional symlink now (this was bogus [*]), but this is done inside
/etc/rc.  However, the latter file is not being automatically updated
by a `make world', hence you must apply the following patch manually:

Index: /usr/src/etc/rc
===================================================================
diff -u -r1.102 -r1.103
[ $ Id $ hunk deleted ]
--- rc	1996/10/21 20:09:30	1.102
+++ rc	1996/10/28 08:28:02	1.103
@@ -121,7 +121,6 @@
 rm -f /etc/nologin
 rm -f /var/spool/lock/*
 rm -rf /var/spool/uucp/.Temp/*
-rm -f /dev/log
 (cd /var/run && { cp /dev/null utmp; chmod 644 utmp; })
 
 #
@@ -169,6 +168,13 @@
 #
 echo -n starting system daemons:
 
+# Transitional symlink (for the next couple of years :) until all
+# binaries had a chance to move towards /var/run/log.
+if [ ! -h /dev/log ] ; then
+	# might complain for r/o root f/s
+	ln -sf /var/run/log /dev/log
+fi
+rm -f /var/run/log
 echo ' syslogd.';			syslogd
 
 echo -n starting early network daemons:


Probably nothing really bad will happen if you don't; infact, i
wouldn't be surprised if you didn't notice it at all...  Only
statically compiled old binaries using syslog(3) will break and fail
to log their events.  Netscape's navigator has a reference to it, but
i'm not sure when it will ever attempt to log something.

Recompiled statically linked binaries after a `make world', and all
dynamic binaries will automatically pick up the new location.

[*] It broke badly if savecore ran before syslogd and actually saved a
coredump.  There was no real need to obfuscate this symlink inside
syslogd(8), /etc/rc being a much more obvious place for it.

-- 
J"org Wunsch					       Unix support engineer
joerg_wunsch@interface-business.de       http://www.interface-business.de/~j



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610281027.LAA18548>