]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/packages/nfs-server
2 ###############################################################################
4 # IPFire.org - A linux based firewall #
5 # Copyright (C) 2007-2022 IPFire Team <info@ipfire.org> #
7 # This program is free software: you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation, either version 3 of the License, or #
10 # (at your option) any later version. #
12 # This program is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
17 # You should have received a copy of the GNU General Public License #
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
20 ###############################################################################
24 .
/var
/ipfire
/nfs
/nfs-server
28 boot_mesg
"Mounting nfsd virtual filesystem..."
29 /bin
/mount
-t nfsd none
/proc
/fs
/nfsd
2>&1 > /dev
/null
32 boot_mesg
"Starting NFS mountd..."
33 loadproc
/usr
/sbin
/rpc.mountd
35 boot_mesg
"Starting NFS nfsd..."
36 loadproc
/usr
/sbin
/rpc.nfsd
-p $PORT $PROCESSES
38 boot_mesg
"Starting NFS statd..."
39 loadproc
/usr
/sbin
/rpc.statd
41 if [ "$QUOTAS" = "yes" ]; then
42 boot_mesg
"Starting NFS rquotad..."
43 loadproc
/usr
/sbin
/rpc.rquotad
46 # Make ceratin that the list is refreshed on
48 boot_mesg
"Exporting NFS Filesystems..."
49 /usr
/sbin
/exportfs
-ra 2>&1 > /dev
/null
54 boot_mesg
"Stopping NFS statd..."
55 killproc
/usr
/sbin
/rpc.statd
57 boot_mesg
"Stopping NFS nfsd..."
61 boot_mesg
"Stopping NFS mountd..."
62 killproc
/usr
/sbin
/rpc.mountd
64 if [ "$QUOTAS" = "yes" ]; then
65 boot_mesg
"Stopping NFS rquotad..."
66 killproc
/usr
/sbin
/rpc.rquotad
69 boot_mesg
"Refreshing NFS Exported Filesystems..."
70 /usr
/sbin
/exportfs
-au 2>&1 > /dev
/null
73 boot_mesg
"Unmounting NFS Virtual Filesystem..."
74 /bin
/umount
/proc
/fs
/nfsd
2>&1 > /dev
/null
77 # Remove a pid file that isn't done automatically
78 boot_mesg
"Removing the rpc.statd pid file if it exists"
79 if [ -f /var
/run
/rpc.statd.pid
]; then
80 rm -f /var
/run
/rpc.statd.pid
85 boot_mesg
"Reloading NFS Server..."
86 /usr
/sbin
/exportfs
-ra
97 statusproc
/usr
/sbin
/rpc.mountd
98 ## Special case for nfsd with no full path
100 statusproc
/usr
/sbin
/rpc.statd
101 if [ "$QUOTA" = "yes" ]; then
102 statusproc rpc.rquotad
107 echo "Usage: $0 {start|stop|reload|restart|status}"