opt/nfs-utils/nfsclient
Juergen Daubert d64d591e8b [notify] nfs-utils: improved rc scripts
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.
2015-03-05 14:54:32 +01:00

23 lines
234 B
Bash

#!/bin/sh
#
# /etc/rc.d/nfs: start/stop nfs client
#
case $1 in
start)
/bin/mount -a -t nfs
;;
stop)
/bin/umount -a -t nfs,nfs4
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file