summaryrefslogtreecommitdiff
path: root/nfs-utils/nfs
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2015-03-05 14:54:32 +0100
committerJuergen Daubert <jue@jue.li>2015-03-05 14:54:32 +0100
commitd64d591e8b7605c507ac74391702803168fac55b (patch)
tree4c2ac01ef25d19272bc0642f7aaf66cdb715a434 /nfs-utils/nfs
parent4b5b46c292b648b64348ca5ddb846055b5fae5bf (diff)
downloadopt-d64d591e8b7605c507ac74391702803168fac55b.tar.gz
opt-d64d591e8b7605c507ac74391702803168fac55b.tar.xz
[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.
Diffstat (limited to 'nfs-utils/nfs')
-rw-r--r--nfs-utils/nfs13
1 files changed, 5 insertions, 8 deletions
diff --git a/nfs-utils/nfs b/nfs-utils/nfs
index 8b720c913..a3eccfdbd 100644
--- a/nfs-utils/nfs
+++ b/nfs-utils/nfs
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# /etc/rc.d/nfs: start/stop nfs client
+# /etc/rc.d/nfs: start/stop nfs daemons needed by nfs client and server
#
PIPEFS=/var/lib/nfs/rpc_pipefs
@@ -9,19 +9,16 @@ case $1 in
start)
/bin/mount -t rpc_pipefs rpc_pipefs $PIPEFS
/usr/sbin/sm-notify
- /usr/sbin/rpc.idmapd
- /usr/sbin/rpc.statd
- /bin/mount -a -t nfs
+ /etc/rc.d/rpc.idmapd start
+ /etc/rc.d/rpc.statd start
;;
stop)
- /bin/umount -a -t nfs,nfs4
- killall -q /usr/sbin/rpc.statd
- killall -q /usr/sbin/rpc.idmapd
+ /etc/rc.d/rpc.statd stop
+ /etc/rc.d/rpc.idmapd stop
/bin/umount $PIPEFS
;;
restart)
$0 stop
- sleep 2
$0 start
;;
*)

Generated by cgit