Juergen Daubert
d64d591e8b
release 2 of nfs-utils 1.3.2 comes with a new set of rc scripts which hopefully improves nfs handling on CRUX. The changes in detail: - seperate run-control scripts for idmapd, statd, mountd and nfsd which are called from the other scripts - idmapd and mountd are behaving more sane now, because they creates pid files in /var/run - nfs is now a rc scripts that includes stuff needed by both nfs-server and -client - the only purpose of nfsclient is to mount/unmount nfs filessystems - nfsserver starts all additional daemons that needs to be run to serve nfs filesystems Note: because of the changes above it's necessary to stop all nfs services before the update and start them again afterwards. Adjustment of /etc/rc.conf is necessary too, possible entries are 'nfs nfsclient', 'nfs nfsserver' or 'nfs nfsserver nfsclient' Please report any problems.
32 lines
434 B
Bash
32 lines
434 B
Bash
#!/bin/sh
|
|
#
|
|
# /etc/rc.d/nfsserver: start/stop nfs server
|
|
#
|
|
|
|
NFSD=/proc/fs/nfsd
|
|
|
|
case $1 in
|
|
start)
|
|
/bin/mount -t nfsd nfsd $NFSD
|
|
/usr/sbin/exportfs -a
|
|
/etc/rc.d/rpc.mountd start
|
|
/etc/rc.d/rpc.nfsd start
|
|
/usr/sbin/sm-notify
|
|
;;
|
|
stop)
|
|
/etc/rc.d/rpc.nfsd stop
|
|
/etc/rc.d/rpc.mountd stop
|
|
/usr/sbin/exportfs -au
|
|
/bin/umount $NFSD
|
|
;;
|
|
restart)
|
|
$0 stop
|
|
$0 start
|
|
;;
|
|
*)
|
|
echo "usage: $0 [start|stop|restart]"
|
|
;;
|
|
esac
|
|
|
|
# End of file
|