lockd revision 124622
1#!/bin/sh 2# 3# $NetBSD: nfslocking,v 1.6 2002/03/24 15:52:41 lukem Exp $ 4# $FreeBSD: head/etc/rc.d/lockd 124622 2004-01-17 10:59:43Z mtm $ 5# 6 7# PROVIDE: nfslocking 8# REQUIRE: nfsserver nfsclient nfsd 9# BEFORE: DAEMON 10# KEYWORD: FreeBSD 11 12. /etc/rc.subr 13 14arg=$1 15 16RCVAR_SERVER="nfs_server_enable" 17RCVAR_CLIENT="nfs_client_enable" 18RCVAR_STATD="rpc_statd_enable" 19RCVAR_LOCKD="rpc_lockd_enable" 20 21start_precmd='checkyesno ${RCVAR_SERVER} || checkyesno ${RCVAR_CLIENT} || 22 [ -n "$rc_force" ]' 23stop_precmd=$start_precmd 24status_precmd=$start_precmd 25 26name="statd" 27rcvar=${RCVAR_STATD} 28command="/usr/sbin/rpc.${name}" 29load_rc_config $name 30run_rc_command "$arg" 31 32name="lockd" 33rcvar=${RCVAR_LOCKD} 34command="/usr/sbin/rpc.${name}" 35load_rc_config $name 36run_rc_command "$arg" 37