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