diff options
author | peter <peter@FreeBSD.org> | 1996-10-08 20:00:44 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-10-08 20:00:44 +0000 |
commit | c9ea7e4fc9bacf78ede42980c3b884fead9c4715 (patch) | |
tree | b908a5d8821e5c3c8f6d304e4ec7bb5bd62878e3 /etc/rc | |
parent | 5c2cf660b66159b8e442225db06dfd47b89e7f50 (diff) | |
download | FreeBSD-src-c9ea7e4fc9bacf78ede42980c3b884fead9c4715.zip FreeBSD-src-c9ea7e4fc9bacf78ede42980c3b884fead9c4715.tar.gz |
Some tweaks after having run a YP-only system with quotas:
- split the "starting network daemons" in half.
- The first half starts things necessary to get full name service up.
- The quota check etc moved from "before network" to after the name
services are running. quotacheck does a while(p=getpwent()) which
isn't real good without YP running...
- moved rwhod a little later to put it with the other network stuff.
- deferred inetd a tad so that it's after ldconfig and dev_mkdb,
otherwise you get logins before you're ready.
Unresolved: named is started before ypserv/ypbind still, but named does
a while(s = getservent()) and while (p=getprotoent()) to suck in the
entire database into memory. This means you cannot have a "+" in the
/etc/services or /etc/protocols files or you get a long hang at boot.
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 34 |
1 files changed, 19 insertions, 15 deletions
@@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.98 1996/09/02 13:09:54 phk Exp $ +# $Id: rc,v 1.99 1996/09/22 06:36:49 imp Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -164,14 +164,6 @@ fi echo 'recording kernel -c changes' /sbin/dset -q -# Check the quotas -if [ "X${check_quotas}" = X"YES" ]; then - echo 'checking quotas:' - quotacheck -a - echo ' done.' - quotaon -a -fi - # start system logging and name service (named needs to start before syslogd # if you don't have a /etc/resolv.conf) # @@ -179,7 +171,7 @@ echo -n starting system daemons: echo ' syslogd.'; syslogd -echo -n starting network daemons: +echo -n starting early network daemons: # $namedflags is imported from /etc/sysconfig if [ "X${namedflags}" != X"NO" ]; then @@ -232,12 +224,18 @@ if [ "X${nis_clientflags}" != X"NO" ]; then fi fi -# $rwhod is imported from /etc/sysconfig; -# if $rwhod is set to YES, rwhod is run. -if [ "X${rwhod}" = X"YES" ]; then - echo -n ' rwhod'; rwhod +echo '.' + +# Check the quotas (must be after ypbind if using NIS) +if [ "X${check_quotas}" = X"YES" ]; then + echo -n 'checking quotas:' + quotacheck -a + echo ' done.' + quotaon -a fi +echo -n starting other network daemons: + if [ "X${nfs_server}" = X"YES" -a -r /etc/exports ]; then echo -n ' mountd' if [ "X${weak_mountd_authentication}" = X"YES" ]; then @@ -257,6 +255,12 @@ if [ "X${amdflags}" != X"NO" ]; then amd ${amdflags} > /var/run/amd.pid fi +# $rwhod is imported from /etc/sysconfig; +# if $rwhod is set to YES, rwhod is run. +if [ "X${rwhod}" = X"YES" ]; then + echo -n ' rwhod'; rwhod +fi + # Kerberos runs ONLY on the Kerberos server machine if [ "X${kerberos_server}" = X"YES" ]; then echo -n ' kerberos'; kerberos >> /var/log/kerberos.log & @@ -269,7 +273,6 @@ if [ "X${mrouted}" != X"NO" -a -x /usr/sbin/mrouted ]; then echo -n ' mrouted'; mrouted ${mrouted} fi -echo -n ' inetd'; inetd echo '.' # build ps databases @@ -306,6 +309,7 @@ fi # Now start up miscellaneous daemons that don't belong anywhere else # echo -n standard daemons: +echo -n ' inetd'; inetd echo -n ' cron'; cron if [ "X${lpd}" != X"NO" -a -x /usr/sbin/lpd ]; then |