NetBSD/etc/rc.d/nfsd
lukem 1ecb0d140f Use 'load_rc_config_var CMD VAR' to set VAR for "foreign" rc.conf(5)
variables that may be set in /etc/rc.conf.d/CMD instead of /etc/rc.conf.
Fixes PR 20768 from Pavel Cahyna.
2004-10-12 14:51:03 +00:00

20 lines
345 B
Bash
Executable File

#!/bin/sh
#
# $NetBSD: nfsd,v 1.7 2004/10/12 14:51:03 lukem Exp $
#
# PROVIDE: nfsd
# REQUIRE: rpcbind mountd
$_rc_subr_loaded . /etc/rc.subr
name="nfsd"
rcvar="nfs_server"
command="/usr/sbin/${name}"
required_vars="mountd rpcbind"
load_rc_config $name
load_rc_config_var rpcbind rpcbind
load_rc_config_var mountd mountd
run_rc_command "$1"