core/nfs-utils/nfsserver

33 lines
499 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
#!/bin/sh
#
# /etc/rc.d/nfsserver: start/stop nfs server
#
case $1 in
start)
2007-05-12 11:12:11 +02:00
/bin/mount -t nfsd nfsd /proc/fs/nfsd
2006-02-23 16:26:10 +01:00
/usr/sbin/exportfs -r
/usr/sbin/rpc.mountd
2007-05-12 11:12:11 +02:00
/usr/sbin/rpc.statd --no-notify
/usr/sbin/rpc.nfsd 8
/usr/sbin/sm-notify -q
2006-02-23 16:26:10 +01:00
;;
stop)
killall -q -2 nfsd
2007-05-12 11:12:11 +02:00
killall -q /usr/sbin/rpc.statd
killall -q /usr/sbin/rpc.mountd
2006-02-23 16:26:10 +01:00
/usr/sbin/exportfs -au
2007-05-12 11:12:11 +02:00
/bin/umount /proc/fs/nfsd
2006-02-23 16:26:10 +01:00
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file