yppasswdd revision 1.3
1#!/bin/sh
2#
3# $NetBSD: yppasswdd,v 1.3 2000/05/13 08:45:10 lukem Exp $
4#
5
6# PROVIDE: yppasswdd
7# REQUIRE: ypserv ypbind
8
9. /etc/rc.subr
10
11name="yppasswdd"
12command="/usr/sbin/rpc.${name}"
13required_vars="portmap ypserv"
14start_precmd="yppasswdd_precmd"
15
16yppasswdd_precmd()
17{
18	_domain=`domainname`
19	if [ -z "$_domain" ]; then
20		warn "domainname(1) is not set; ${name} not started"
21		return 1
22	fi
23}
24
25load_rc_config $name
26run_rc_command "$1"
27