From 49d470a3b58d1cd6105e8f52a6c31cdaace0381a Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Mon, 15 Nov 2004 15:42:15 -0500 Subject: [PATCH] cleanup the nfs server script configs/boot/nfs-server.rcS: don't need extra IP aliases re-order the nfs daemons so they happen in the right order and don't have the shell put them in the background since they will auto detach anyway. --HG-- extra : convert_revision : a6b13ac91d1649878d346663f6ddff56d9a8a8ec --- configs/boot/nfs-server.rcS | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/configs/boot/nfs-server.rcS b/configs/boot/nfs-server.rcS index feefc057f..024b42f76 100755 --- a/configs/boot/nfs-server.rcS +++ b/configs/boot/nfs-server.rcS @@ -9,10 +9,6 @@ echo "done." echo -n "setting up network..." /sbin/ifconfig eth0 10.0.0.1 txqueuelen 1000 -/sbin/ifconfig eth0:1 192.168.0.2 txqueuelen 1000 -/sbin/ifconfig eth0:2 192.168.0.3 txqueuelen 1000 -/sbin/ifconfig eth0:3 192.168.0.4 txqueuelen 1000 -/sbin/ifconfig eth0:4 192.168.0.5 txqueuelen 1000 /sbin/ifconfig lo 127.0.0.1 echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle @@ -36,8 +32,6 @@ echo "300000" > /proc/sys/net/core/netdev_max_backlog echo "131072" > /proc/sys/fs/file-max echo "done." -echo "/nfs 10.0.0.0/255.0.0.0(rw,sync,no_root_squash)" > /etc/exports - #if [ ! -x /dev/sda ] #then # mknod /dev/sda b 8 0 @@ -56,12 +50,13 @@ chmod a+rwx /nfs /usr/sbin/sfdisk -uM -l /dev/sda echo "done." +echo "/nfs 10.0.0.0/255.0.0.0(rw,sync,no_root_squash)" > /etc/exports echo -n "starting nfs kernel server..." -/sbin/nfsd 8 & -/sbin/statd & -/sbin/portmap & -/sbin/lockd & -/sbin/mountd & +/sbin/portmap +/sbin/lockd +/sbin/statd +/sbin/nfsd 8 +/sbin/mountd echo "done." echo "Exporting shares..." @@ -71,6 +66,5 @@ echo -n "signal client to mount..." echo "server ready" | /usr/bin/netcat -c 10.0.0.2 8000 echo "done." - echo -n "starting bash shell..." /bin/bash