3 # FreeBSD History: src/etc/rc.d/nfslocking,v 1.11 2004/10/07 13:55:26 mtm
4 # $FreeBSD: src/etc/rc.d/lockd,v 1.22 2008/07/16 19:50:29 dougb Exp $
8 # REQUIRE: nfsserver nfsclient nfsd rpcbind statd
10 # KEYWORD: nojail shutdown
15 rcvar
=rpc_lockd_enable
16 command="/usr/sbin/rpc.${name}"
17 start_precmd
='lockd_precmd'
18 stop_precmd
='checkyesno nfs_server_enable || checkyesno nfs_client_enable'
19 status_precmd
=$stop_precmd
21 # Make sure that we are either an NFS client or server, and that we get
22 # the correct flags from rc.conf(5).
29 if ! checkyesno nfs_server_enable
&& ! checkyesno nfs_client_enable
33 if ! checkyesno rpcbind_enable
&& \
34 ! /etc
/rc.d
/rpcbind forcestatus
1>/dev
/null
2>&1
36 force_depend rpcbind || ret
=1
38 rc_flags
=${rpc_lockd_flags}