From a07ca43c89ada79a1171436e1d20bf30e82eac46 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Mon, 28 Oct 1996 08:28:02 +0000 Subject: [PATCH] Correct the startup sequence for syslogd: . crate the symlink for /dev/log if required, then . remove the old socket (savecore might have already created it accidentally), then . start syslogd. (Btw., our test(1) misses an option to test for a socket.) --- etc/rc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/etc/rc b/etc/rc index 7531168853a..03532934f7a 100644 --- a/etc/rc +++ b/etc/rc @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.101 1996/10/08 20:02:57 peter Exp $ +# $Id: rc,v 1.102 1996/10/21 20:09:30 wpaul Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -121,7 +121,6 @@ chmod 666 /dev/tty[pqrs]* 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 'recording kernel -c changes' # 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: -- 2.45.2