lockd revision 126181
1183873Sraj#!/bin/sh 2183873Sraj# 3183873Sraj# $NetBSD: nfslocking,v 1.6 2002/03/24 15:52:41 lukem Exp $ 4183873Sraj# $FreeBSD: head/etc/rc.d/lockd 126181 2004-02-23 22:00:44Z brueffer $ 5183873Sraj# 6183873Sraj 7183873Sraj# PROVIDE: nfslocking 8183873Sraj# REQUIRE: nfsserver nfsclient nfsd 9183873Sraj# BEFORE: DAEMON 10191954Skuriyama# KEYWORD: FreeBSD 11185478Ssam 12183873Sraj. /etc/rc.subr 13183873Sraj 14183873Sraj# Save the (one) commandline argument in case it gets clobbered. 15183873Srajarg=$1 16183873Sraj 17183873Sraj# Either NFS client or server must be enabled or this must be a 'forcestart' 18183873Sraj# for either of the daemons to start. 19183873Sraj# 20183873Srajstart_precmd='checkyesno nfs_server_enable || checkyesno nfs_client_enable || 21191954Skuriyama [ -n "$rc_force" ]' 22183873Srajstop_precmd=$start_precmd 23191954Skuriyamastatus_precmd=$start_precmd 24191954Skuriyama 25191954Skuriyama# rpc.statd 26191954Skuriyama# 27183873Srajname="statd" 28191954Skuriyamarcvar=rpc_statd_enable 29183873Srajcommand="/usr/sbin/rpc.${name}" 30183873Srajload_rc_config $name 31183873Srajrun_rc_command "$arg" 32183873Sraj 33183873Sraj# rpc.lockd 34183873Sraj# 35191954Skuriyamaname="lockd" 36183873Srajrcvar=rpc_lockd_enable 37183873Srajcommand="/usr/sbin/rpc.${name}" 38183873Srajload_rc_config $name 39183873Srajrun_rc_command "$arg" 40191954Skuriyama