summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/runit-scripts/runitscripts/services/nfsd/run
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-04-10 16:44:42 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-04-10 16:44:42 (GMT)
commit5e80643fcd0df6419f18bccba6594a251eb2d179 (patch)
tree02eba330ea85211042a4fa4fcb0c9147c77d3e8a /abs/core-testing/runit-scripts/runitscripts/services/nfsd/run
parent6a486a28262c43e8ae2c1a742b4ffd4b29eaf0d0 (diff)
downloadlinhes_pkgbuild-5e80643fcd0df6419f18bccba6594a251eb2d179.zip
linhes_pkgbuild-5e80643fcd0df6419f18bccba6594a251eb2d179.tar.gz
linhes_pkgbuild-5e80643fcd0df6419f18bccba6594a251eb2d179.tar.bz2
runit-scripts: added fbsplash-runit.sh and general cleanup to make text pretty
Diffstat (limited to 'abs/core-testing/runit-scripts/runitscripts/services/nfsd/run')
-rwxr-xr-xabs/core-testing/runit-scripts/runitscripts/services/nfsd/run7
1 files changed, 7 insertions, 0 deletions
diff --git a/abs/core-testing/runit-scripts/runitscripts/services/nfsd/run b/abs/core-testing/runit-scripts/runitscripts/services/nfsd/run
index d8435a6..3b63077 100755
--- a/abs/core-testing/runit-scripts/runitscripts/services/nfsd/run
+++ b/abs/core-testing/runit-scripts/runitscripts/services/nfsd/run
@@ -1,5 +1,9 @@
#!/bin/bash
exec 2>&1
+export TERM=linux
+. /etc/rc.conf
+. /etc/rc.d/functions
+stat_runit "Starting NFSD"
# Make sure the statd daemon is up
# (the statd service must ensure portmap is running first)
@@ -11,12 +15,15 @@ source /etc/conf.d/nfs
/usr/sbin/exportfs -ra > /dev/null 2>/dev/null
# start some nfsd threads
+printhl " Using ${NFSD_OPTS} "
/usr/sbin/rpc.nfsd -p ${NFSD_OPTS} >/dev/null 2>/dev/null
# since we are running kernel 2.6 we should also
# mount the nfsd virtual filesystem
+printhl " mount nfsd"
/bin/mount -t nfsd none /proc/fs/nfsd >/dev/null 2>/dev/null
# Start the rpc.mountd daemon
+
exec /usr/sbin/rpc.mountd --foreground >/dev/null 2>/dev/null