3 # $NetBSD: nfslocking,v 1.6 2002/03/24 15:52:41 lukem Exp $
8 # REQUIRE: nfsserver nfsclient nfsd rpcbind
14 # Save the (one) commandline argument in case it gets clobbered.
17 # Either NFS client or server must be enabled and rpcbind(8) must be started.
24 if ! checkyesno nfs_server_enable && ! checkyesno nfs_client_enable
28 if ! checkyesno rpcbind_enable && \
29 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
31 force_depend rpcbind || ret=1
34 if [ $name = "statd" ]
36 rc_flags=${rpc_statd_flags}
37 elif [ $name = "lockd" ]
39 rc_flags=${rpc_lockd_flags}
45 start_precmd="nfslocking_precmd"
46 stop_precmd='checkyesno nfs_server_enable || checkyesno nfs_client_enable'
47 status_precmd=$stop_precmd
52 rcvar=rpc_statd_enable
53 command="/usr/sbin/rpc.${name}"
60 rcvar=rpc_lockd_enable
61 command="/usr/sbin/rpc.${name}"