initialize rpc services in proper order

This commit is contained in:
deraadt 1993-12-16 04:02:23 +00:00
parent 32fa8934ac
commit 61b54a3379
2 changed files with 28 additions and 23 deletions

View File

@ -1,6 +1,7 @@
#!/bin/sh -
#
# @(#)netstart 5.9 (Berkeley) 3/30/91
# $Id: netstart,v 1.12 1993/12/16 04:02:23 deraadt Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=-q
@ -91,7 +92,3 @@ route add $hostname localhost
if [ -f /etc/mygate ]; then
route add default `cat /etc/mygate`
fi
if [ -f /usr/sbin/ypbind -a -d /var/yp ]; then
ypbind; echo ypbind
fi

46
etc/rc
View File

@ -1,5 +1,5 @@
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# $Id: rc,v 1.25 1993/12/15 07:24:31 mycroft Exp $
# @(#)rc 5.27 (Berkeley) 6/5/91
# $Id: rc,v 1.26 1993/12/16 04:02:24 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -66,7 +66,31 @@ rm -f /fastboot # XXX (root now writeable)
echo 'starting network'
. /etc/netstart
mount -a -t nfs >/dev/null 2>&1 & # XXX shouldn't need background
mount /usr >/dev/null 2>&1
mount -a -t nfs >/dev/null 2>&1
echo -n 'starting rpc daemons:'
echo -n ' portmap'; portmap
if [ -f /usr/sbin/ypbind -a -d /var/yp ]; then
echo -n ' ypbind'; ypbind
fi
# $nfs_server is imported from /etc/netstart;
# if $nfs_server == YES, the machine is setup for being an nfs server
if [ X${nfs_server} = X"YES" -a -r /etc/exports ]; then
rm -f /var/db/mountdtab
echo -n ' mountd'; mountd
echo -n ' nfsd'; nfsd -u 0,0,4 -t 0,0
fi
# $nfs_client is imported from /etc/netstart;
# if $nfs_client == YES, the machine is setup for being an nfs client
if [ X${nfs_client} = X"YES" ]; then
echo -n ' nfsiod'; nfsiod 4
fi
echo '.'
# clean up left-over files
rm -f /etc/nologin
@ -160,22 +184,6 @@ fi
echo -n ' printer'; lpd
echo -n ' portmap'; portmap
# $nfs_server is imported from /etc/netstart;
# if $nfs_server == YES, the machine is setup for being an nfs server
if [ X${nfs_server} = X"YES" -a -r /etc/exports ]; then
rm -f /var/db/mountdtab
echo -n ' mountd'; mountd
echo -n ' nfsd'; nfsd -u 0,0,4 -t 0,0
fi
# $nfs_client is imported from /etc/netstart;
# if $nfs_client == YES, the machine is setup for being an nfs client
if [ X${nfs_client} = X"YES" ]; then
echo -n ' nfsiod'; nfsiod 4
fi
# $sendmail_flags is imported from /etc/netstart;
# If $sendmail_flags == NO or /etc/sendmail.cf doesn't exist, then
# sendmail isn't run.