lockd revision 126181
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 126181 2004-02-23 22:00:44Z brueffer $ 5# 6 7# PROVIDE: nfslocking 8# REQUIRE: nfsserver nfsclient nfsd 9# BEFORE: DAEMON 10# KEYWORD: FreeBSD 11 12. /etc/rc.subr 13 14# Save the (one) commandline argument in case it gets clobbered. 15arg=$1 16 17# Either NFS client or server must be enabled or this must be a 'forcestart' 18# for either of the daemons to start. 19# 20start_precmd='checkyesno nfs_server_enable || checkyesno nfs_client_enable || 21 [ -n "$rc_force" ]' 22stop_precmd=$start_precmd 23status_precmd=$start_precmd 24 25# rpc.statd 26# 27name="statd" 28rcvar=rpc_statd_enable 29command="/usr/sbin/rpc.${name}" 30load_rc_config $name 31run_rc_command "$arg" 32 33# rpc.lockd 34# 35name="lockd" 36rcvar=rpc_lockd_enable 37command="/usr/sbin/rpc.${name}" 38load_rc_config $name 39run_rc_command "$arg" 40