statd revision 171871
11197Smcimadamore#!/bin/sh 22933Sakulyakh# 31197Smcimadamore# $NetBSD: nfslocking,v 1.6 2002/03/24 15:52:41 lukem Exp $ 41197Smcimadamore# $FreeBSD: head/etc/rc.d/statd 171871 2007-08-17 07:58:26Z mtm $ 51197Smcimadamore# 61197Smcimadamore 71197Smcimadamore# PROVIDE: nfslocking 81197Smcimadamore# REQUIRE: nfsserver nfsclient nfsd rpcbind 91197Smcimadamore# BEFORE: DAEMON 101197Smcimadamore# KEYWORD: nojail 111197Smcimadamore 121197Smcimadamore. /etc/rc.subr 131197Smcimadamore 141197Smcimadamore# Save the (one) commandline argument in case it gets clobbered. 151197Smcimadamorearg=$1 161197Smcimadamore 171197Smcimadamore# Either NFS client or server must be enabled and rpcbind(8) must be started. 181197Smcimadamore# 191197Smcimadamorenfslocking_precmd() 201197Smcimadamore{ 211197Smcimadamore local ret 221197Smcimadamore ret=0 231197Smcimadamore 241197Smcimadamore if ! checkyesno nfs_server_enable && ! checkyesno nfs_client_enable 251197Smcimadamore then 261197Smcimadamore ret=1 271197Smcimadamore fi 282933Sakulyakh if ! checkyesno rpcbind_enable && \ 291197Smcimadamore ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 301197Smcimadamore then 311197Smcimadamore force_depend rpcbind || ret=1 321197Smcimadamore fi 331197Smcimadamore rc_flags=${rpc_statd_flags} 341197Smcimadamore return ${ret} 351197Smcimadamore} 361197Smcimadamore 371197Smcimadamoreload_rc_config $name 381197Smcimadamorerun_rc_command $1 391197Smcimadamore