c0372ca1ef
present under /var/yp/<somedomain>/<map> -- so don't require it. Thanks to Chuck Cranor for the suggestion.
28 lines
428 B
Bash
Executable File
28 lines
428 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# $NetBSD: ypserv,v 1.9 2005/04/01 23:25:29 lukem Exp $
|
|
#
|
|
|
|
# PROVIDE: ypserv
|
|
# REQUIRE: rpcbind
|
|
|
|
$_rc_subr_loaded . /etc/rc.subr
|
|
|
|
name="ypserv"
|
|
rcvar=$name
|
|
command="/usr/sbin/${name}"
|
|
required_vars="rpcbind"
|
|
start_precmd="ypserv_precmd"
|
|
|
|
ypserv_precmd()
|
|
{
|
|
if [ ! -d /var/yp/. ]; then
|
|
warn "/var/yp is not a directory."
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
load_rc_config $name
|
|
load_rc_config_var rpcbind rpcbind
|
|
run_rc_command "$1"
|