Plan 9 from Bell Labs’s /usr/web/sources/contrib/someone/root/rc/bin/service/startnfs

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
# startnfs - (re)start nfs server
echo killing old nfs server
Kill portmapper|rc
Kill nfsserver|rc
rm -f /srv/nfsserver.chat /srv/portmapper.chat

echo starting new nfs server
if(test -e /srv/nfs) {
	aux/nfsserver -f /srv/nfs -c /sys/lib/nfs/clients
	aux/nfsserver -t -f /srv/nfstcp -c /sys/lib/nfs/clients
}
if not {
	switch(`{cat /dev/sysname}){
	case olive anna
		aux/nfsserver -a tcp!yoshimi -c /sys/lib/nfs/clients
	case delay			# obsolete
		rm -f /srv/howard
		srvfs howard /usr/howard/timesys/rfs
		chmod 666 /srv/howard
		aux/nfsserver -d9cc -f /srv/howard -c /sys/lib/nfs/clients
	}
}
{ aux/portmapper; aux/portmapper -t }	>>[2]/sys/log/portmapper

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.