statd revision 171871
11558Srgrimes#!/bin/sh 21558Srgrimes# 31558Srgrimes# $NetBSD: nfslocking,v 1.6 2002/03/24 15:52:41 lukem Exp $ 41558Srgrimes# $FreeBSD: head/etc/rc.d/statd 171871 2007-08-17 07:58:26Z mtm $ 51558Srgrimes# 61558Srgrimes 71558Srgrimes# PROVIDE: nfslocking 81558Srgrimes# REQUIRE: nfsserver nfsclient nfsd rpcbind 91558Srgrimes# BEFORE: DAEMON 101558Srgrimes# KEYWORD: nojail 111558Srgrimes 121558Srgrimes. /etc/rc.subr 131558Srgrimes 141558Srgrimes# Save the (one) commandline argument in case it gets clobbered. 151558Srgrimesarg=$1 161558Srgrimes 171558Srgrimes# Either NFS client or server must be enabled and rpcbind(8) must be started. 181558Srgrimes# 191558Srgrimesnfslocking_precmd() 201558Srgrimes{ 211558Srgrimes local ret 221558Srgrimes ret=0 231558Srgrimes 241558Srgrimes if ! checkyesno nfs_server_enable && ! checkyesno nfs_client_enable 251558Srgrimes then 261558Srgrimes ret=1 271558Srgrimes fi 281558Srgrimes if ! checkyesno rpcbind_enable && \ 2955795Sbde ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 3055742Skris then 311558Srgrimes force_depend rpcbind || ret=1 321558Srgrimes fi 331558Srgrimes rc_flags=${rpc_statd_flags} 341558Srgrimes return ${ret} 3541901Sjkh} 3655795Sbde 37load_rc_config $name 38run_rc_command $1 39