CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
libsoup: removed verbose output.
[attic/ports/opt-cross.git] / nfs-utils / nfsserver
CommitLineData
935da01f
VM
1#!/bin/sh
2#
3# /etc/rc.d/nfsserver: start/stop nfs server
4#
5
6case $1 in
7start)
8 /bin/mount -t nfsd nfsd /proc/fs/nfsd
9 /usr/sbin/exportfs -r
10 /usr/sbin/rpc.mountd
11 /usr/sbin/rpc.statd --no-notify
12 /usr/sbin/rpc.nfsd 8
13 /usr/sbin/sm-notify
14 ;;
15stop)
16 killall -q -2 nfsd
17 killall -q /usr/sbin/rpc.statd
18 killall -q /usr/sbin/rpc.mountd
19 /usr/sbin/exportfs -au
20 /bin/umount /proc/fs/nfsd
21 ;;
22restart)
23 $0 stop
24 sleep 2
25 $0 start
26 ;;
27*)
28 echo "usage: $0 [start|stop|restart]"
29 ;;
30esac
31
32# End of