Move the invocation of rc.maint ahead of netstart. This is actually OK
since /var wouldn't be mounted at this point anyway - the mount of NFS comes after both of them are run. This closes misc/276.
This commit is contained in:
parent
7715dd8ca1
commit
52c2c6e841
12
etc/rc
12
etc/rc
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $Id: rc,v 1.56 1995/03/26 18:18:58 wpaul Exp $
|
||||
# $Id: rc,v 1.57 1995/03/29 03:35:10 jkh Exp $
|
||||
# From: @(#)rc 5.27 (Berkeley) 6/5/91
|
||||
|
||||
# System startup script run by init on autoboot
|
||||
@ -81,16 +81,16 @@ if [ -f /etc/rc.serial ]; then
|
||||
. /etc/rc.serial
|
||||
fi
|
||||
|
||||
# start up the network
|
||||
if [ -f /etc/netstart ]; then
|
||||
. /etc/netstart
|
||||
fi
|
||||
|
||||
# Do system maintainance functions.
|
||||
if [ -f /etc/rc.maint ]; then
|
||||
. /etc/rc.maint
|
||||
fi
|
||||
|
||||
# Start up the network
|
||||
if [ -f /etc/netstart ]; then
|
||||
. /etc/netstart
|
||||
fi
|
||||
|
||||
# Now start up miscellaneous daemons that don't belong anywhere else
|
||||
#
|
||||
echo -n standard daemons:
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $Id: rc.maint,v 1.2 1995/03/24 00:16:25 jkh Exp $
|
||||
# $Id: rc.maint,v 1.3 1995/03/29 03:30:22 jkh Exp $
|
||||
# From: @(#)rc 5.27 (Berkeley) 6/5/91
|
||||
|
||||
# Various maintainance tasks to be done as the system is coming up
|
||||
@ -16,6 +16,8 @@ fi
|
||||
rm -f /etc/nologin
|
||||
rm -f /var/spool/lock/*
|
||||
rm -f /var/spool/uucp/.Temp/*
|
||||
|
||||
# clean out the old utmp file.
|
||||
(cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; })
|
||||
|
||||
# Check the quotas
|
||||
|
Loading…
Reference in New Issue
Block a user