]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/rc.d/lockd
Connect the installation page to the build.
[FreeBSD/FreeBSD.git] / etc / rc.d / lockd
1 #!/bin/sh
2 #
3 # FreeBSD History: src/etc/rc.d/nfslocking,v 1.11 2004/10/07 13:55:26 mtm
4 # $FreeBSD$
5 #
6
7 # PROVIDE: lockd
8 # REQUIRE: nfsclient nfsd rpcbind statd
9 # BEFORE:  DAEMON
10 # KEYWORD: nojail shutdown
11
12 . /etc/rc.subr
13
14 name="lockd"
15 desc="NFS file locking daemon"
16 rcvar=rpc_lockd_enable
17 command="/usr/sbin/rpc.${name}"
18 start_precmd='lockd_precmd'
19
20 # Make sure that we are either an NFS client or server, and that we get
21 # the correct flags from rc.conf(5).
22 #
23 lockd_precmd()
24 {
25         force_depend rpcbind || return 1
26         force_depend statd rpc_statd || return 1
27         
28         rc_flags=${rpc_lockd_flags}
29 }
30
31 load_rc_config $name
32 run_rc_command $1