lockd revision 231667
1#!/bin/sh 2# 3# FreeBSD History: src/etc/rc.d/nfslocking,v 1.11 2004/10/07 13:55:26 mtm 4# $FreeBSD: head/etc/rc.d/lockd 231667 2012-02-14 10:51:24Z dougb $ 5# 6 7# PROVIDE: lockd 8# REQUIRE: nfsclient nfsd rpcbind statd 9# BEFORE: DAEMON 10# KEYWORD: nojail shutdown 11 12. /etc/rc.subr 13 14name="lockd" 15rcvar=rpc_lockd_enable 16command="/usr/sbin/rpc.${name}" 17start_precmd='lockd_precmd' 18 19# Make sure that we are either an NFS client or server, and that we get 20# the correct flags from rc.conf(5). 21# 22lockd_precmd() 23{ 24 force_depend rpcbind || return 1 25 force_depend statd rpc_statd || return 1 26 27 rc_flags=${rpc_lockd_flags} 28} 29 30load_rc_config $name 31run_rc_command $1 32