lockd revision 124616
178344Sobrien#!/bin/sh 278344Sobrien# 398184Sgordon# $NetBSD: nfslocking,v 1.6 2002/03/24 15:52:41 lukem Exp $ 498184Sgordon# $FreeBSD: head/etc/rc.d/lockd 124616 2004-01-17 10:16:38Z mtm $ 578344Sobrien# 678344Sobrien 778344Sobrien# PROVIDE: nfslocking 898184Sgordon# REQUIRE: nfsserver nfsclient nfsd 998184Sgordon# BEFORE: DAEMON 10124616Smtm# KEYWORD: FreeBSD 1178344Sobrien 1278344Sobrien. /etc/rc.subr 1378344Sobrien 1478344Sobrienarg=$1 1578344Sobrien 16103019Sgordoncase ${OSTYPE} in 1798184SgordonFreeBSD) 1898184Sgordon RCVAR_SERVER="nfs_server_enable" 1998184Sgordon RCVAR_CLIENT="nfs_client_enable" 2098184Sgordon RCVAR_STATD="rpc_statd_enable" 2198184Sgordon RCVAR_LOCKD="rpc_lockd_enable" 2298184Sgordon ;; 2398184SgordonNetBSD) 2498184Sgordon RCVAR_SERVER="nfs_server" 2598184Sgordon RCVAR_CLIENT="nfs_client" 2698184Sgordon RCVAR_STATD="statd" 2798184Sgordon RCVAR_LOCKD="lockd" 2898184Sgordon ;; 2998184Sgordonesac 3098184Sgordon 31109579Smtmstart_precmd='checkyesno ${RCVAR_SERVER} || checkyesno ${RCVAR_CLIENT} || 32109579Smtm [ -n "$rc_force" ]' 3378344Sobrienstop_precmd=$start_precmd 3478344Sobrienstatus_precmd=$start_precmd 3578344Sobrien 3678344Sobrienname="statd" 3798184Sgordonrcvar=${RCVAR_STATD} 3878344Sobriencommand="/usr/sbin/rpc.${name}" 3978344Sobrienload_rc_config $name 4078344Sobrienrun_rc_command "$arg" 4178344Sobrien 4278344Sobrienname="lockd" 4398184Sgordonrcvar=${RCVAR_LOCKD} 4478344Sobriencommand="/usr/sbin/rpc.${name}" 4578344Sobrienload_rc_config $name 4678344Sobrienrun_rc_command "$arg" 47