Dash:
[t2.git] / package / filesystem / nfs-utils / knfsd.init
blob94c8d02e9f409945be39c0041cee9bcd83e48d42
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/nfs-utils/knfsd.init
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
5
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 # Desc: Kernel NFS Daemon
14 # Runlevel: 25 rcX
17 main_begin
19     block_begin(start, `Starting kernel nfsd')
20         insmod -q nfsd &> /dev/null
21         if [ -f D_sbindir/rpc.rquotad ]; then check(`D_sbindir/rpc.rquotad'); fi
22         check(`D_sbindir/rpc.mountd')
23         check(`D_sbindir/rpc.nfsd 8')
24         check(`D_sbindir/exportfs -a')
25     block_end
27     block_begin(stop, `Stopping kernel nfsd')
28         check(`killall D_sbindir/rpc.mountd')
29         check(`killall -9  D_sbindir/rpc.nfsd')
30         if [ -f D_sbindir/rpc.rquotad ]; then check(`killall -9  D_sbindir/rpc.rquotad'); fi
31         check(`D_sbindir/exportfs -u -a')
32     block_end
34     block_begin(reload, `Reloading exports')
35         check(`D_sbindir/exportfs -r')
36     block_end
38 main_end