CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
python: initial import due to footprint mismatches for the ARM architecture
[ports/opt-arm.git] / nfs-utils / nfsserver
CommitLineData
e72251b7
VM
1#!/bin/sh
2#
3# /etc/rc.d/nfsserver: start/stop nfs server
4#
5
6NFSD=/proc/fs/nfsd
7PIPEFS=/var/lib/nfs/rpc_pipefs
8
9case $1 in
10start)
11 /bin/mount -t nfsd nfsd $NFSD
12 /bin/mount -t rpc_pipefs rpc_pipefs $PIPEFS
13 /usr/sbin/rpc.idmapd
14 /usr/sbin/exportfs -a
15 /usr/sbin/rpc.mountd
16 /usr/sbin/rpc.statd --no-notify
17 /usr/sbin/rpc.nfsd --syslog 8
18 /usr/sbin/sm-notify
19 ;;
20stop)
21 killall -q -2 nfsd
22 killall -q /usr/sbin/rpc.statd
23 killall -q /usr/sbin/rpc.mountd
24 /usr/sbin/exportfs -au
25 killall -q /usr/sbin/rpc.idmapd
26 /bin/umount $PIPEFS
27 /bin/umount $NFSD
28 ;;
29restart)
30 $0 stop
31 sleep 2
32 $0 start
33 ;;
34*)
35 echo "usage: $0 [start|stop|restart]"
36 ;;
37esac
38
39# End of file