Browse Source

sigh; move syslog up nearer the top. Any failures from this?

OPENBSD_2_3
deraadt 27 years ago
parent
commit
aae2a520f4
1 changed files with 9 additions and 10 deletions
  1. +9
    -10
      src/etc/rc

+ 9
- 10
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.57 1997/12/12 23:02:26 niklas Exp $
# $OpenBSD: rc,v 1.58 1997/12/21 06:40:50 deraadt Exp $
# System startup script run by init on autoboot # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -83,10 +83,14 @@ rm -f /var/spool/lock/LCK.*
rm -f /var/spool/uucp/STST/* rm -f /var/spool/uucp/STST/*
(cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; }) (cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; })
echo 'starting system logger'
rm -f /dev/log
syslogd
# $named_flags is imported from /etc/rc.conf; # $named_flags is imported from /etc/rc.conf;
# if $named_flags != NO, named is run. # if $named_flags != NO, named is run.
if [ "X${named_flags}" != X"NO" ]; then if [ "X${named_flags}" != X"NO" ]; then
echo -n ' named'; named $named_flags
echo 'starting named'; named $named_flags
fi fi
# /etc/ifaliases, if it exists, contains the names of additional IP # /etc/ifaliases, if it exists, contains the names of additional IP
@ -182,20 +186,15 @@ if [ X${amd} = X"YES" -a -d ${amd_dir} -a -r ${amd_master} ]; then
-a ${amd_dir} `cat ${amd_master}` > /var/run/amd.pid -a ${amd_dir} `cat ${amd_master}` > /var/run/amd.pid
fi fi
echo '.'
mount -a -t nfs
echo -n 'starting system logger'
rm -f /dev/log
syslogd
# $timed_flags is imported from /etc/rc.conf; # $timed_flags is imported from /etc/rc.conf;
# if $timed_flags == NO, timed isn't run. # if $timed_flags == NO, timed isn't run.
if [ "X${timed_flags}" != X"NO" ]; then if [ "X${timed_flags}" != X"NO" ]; then
echo -n ', time daemon'; timed $timed_flags
echo -n ' timed'; timed $timed_flags
fi fi
echo '.' echo '.'
mount -a -t nfs
# /var/crash should be a directory or a symbolic link # /var/crash should be a directory or a symbolic link
# to the crash directory if core dumps are to be saved. # to the crash directory if core dumps are to be saved.
if [ -d /var/crash ]; then if [ -d /var/crash ]; then


Loading…
Cancel
Save