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