
NETWORKING, and SERVERS) by specifying that certain things should come BEFORE a given barrier, rather than having the barrier REQUIRE a service. This allows scripts to be removed without having to edit the barrier dependencies. As discussed on tech-userlevel, and approved by Luke.
29 lines
476 B
Bash
Executable File
29 lines
476 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $NetBSD: nfslocking,v 1.5 2002/03/22 04:33:59 thorpej Exp $
|
|
#
|
|
|
|
# PROVIDE: nfslocking
|
|
# REQUIRE: nfsd
|
|
# BEFORE: DAEMON
|
|
|
|
. /etc/rc.subr
|
|
|
|
arg=$1
|
|
|
|
start_precmd='checkyesno nfs_server || checkyesno nfs_client'
|
|
stop_precmd=$start_precmd
|
|
status_precmd=$start_precmd
|
|
|
|
name="statd"
|
|
rcvar=$name
|
|
command="/usr/sbin/rpc.${name}"
|
|
load_rc_config $name
|
|
run_rc_command "$arg"
|
|
|
|
name="lockd"
|
|
rcvar=$name
|
|
command="/usr/sbin/rpc.${name}"
|
|
load_rc_config $name
|
|
run_rc_command "$arg"
|