From owner-freebsd-current Mon Oct 28 02:22:00 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA17597 for current-outgoing; Mon, 28 Oct 1996 02:22:00 -0800 (PST) Received: from innocence.interface-business.de (innocence.interface-business.de [193.101.57.202]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id CAA17592 for ; Mon, 28 Oct 1996 02:21:54 -0800 (PST) Received: from ida.interface-business.de (ida.interface-business.de [193.101.57.203]) by innocence.interface-business.de (8.6.11/8.6.9) with SMTP id LAA27110 for ; Mon, 28 Oct 1996 11:20:30 +0100 Received: (from j@localhost) by ida.interface-business.de (8.7.5/8.7.3) id LAA18548 for freebsd-current@FreeBSD.org; Mon, 28 Oct 1996 11:27:20 +0100 (MET) From: J Wunsch Message-Id: <199610281027.LAA18548@ida.interface-business.de> Subject: /dev/log changes To: freebsd-current@FreeBSD.org (FreeBSD-current users) Date: Mon, 28 Oct 1996 11:27:20 +0100 (MET) Reply-To: joerg_wunsch@interface-business.de (Joerg Wunsch) X-Phone: +49-351-31809-14 X-Fax: +49-351-3361187 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL15 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk 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