Add PCICAP_{ID,NEXTPTR} to avoid using magic number
[dragonfly.git] / etc / rc.d / nfslocking
CommitLineData
9c600e7d
MD
1#!/bin/sh
2#
3# $NetBSD: nfslocking,v 1.6 2002/03/24 15:52:41 lukem Exp $
4# $FreeBSD: src/etc/rc.d/nfslocking,v 1.4 2003/01/20 18:57:16 mtm Exp $
696a5717 5# $DragonFly: src/etc/rc.d/nfslocking,v 1.4 2005/11/19 21:47:32 swildner Exp $
9c600e7d
MD
6#
7
8# PROVIDE: nfslocking
9# REQUIRE: nfsserver nfsclient nfsd
10# BEFORE: DAEMON
9c600e7d
MD
11
12. /etc/rc.subr
13
14arg=$1
15
283b4f06
RG
16RCVAR_SERVER="nfs_server_enable"
17RCVAR_CLIENT="nfs_client_enable"
18RCVAR_STATD="rpc_statd_enable"
19RCVAR_LOCKD="rpc_lockd_enable"
9c600e7d
MD
20
21start_precmd='checkyesno ${RCVAR_SERVER} || checkyesno ${RCVAR_CLIENT} ||
f6d60b69 22 [ -n "$rc_force" ]'
9c600e7d
MD
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"