diff options
author | joerg <joerg@FreeBSD.org> | 1996-10-28 08:28:02 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1996-10-28 08:28:02 +0000 |
commit | ff0d6919650583d08121fa712c8211ccc498f3f8 (patch) | |
tree | be824337da3690fb613a6710df68808a1343110e | |
parent | b1513ae6f0e7500403d1b64adafbbd2296b18d32 (diff) | |
download | FreeBSD-src-ff0d6919650583d08121fa712c8211ccc498f3f8.zip FreeBSD-src-ff0d6919650583d08121fa712c8211ccc498f3f8.tar.gz |
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.)
-rw-r--r-- | etc/rc | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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: |