yppasswdd revision 1.2
11.1Slukem#!/bin/sh
21.1Slukem#
31.2Slukem# $NetBSD: yppasswdd,v 1.2 2000/03/16 22:22:15 lukem Exp $
41.1Slukem#
51.1Slukem
61.1Slukem# PROVIDE: yppasswdd
71.1Slukem# REQUIRE: ypserv ypbind
81.1Slukem
91.1Slukem. /etc/rc.subr
101.1Slukem. /etc/rc.conf
111.1Slukem
121.1Slukemname="yppasswdd"
131.1Slukemcommand="/usr/sbin/rpc.${name}"
141.1Slukemrequired_vars="portmap ypserv"
151.1Slukemstart_precmd="yppasswdd_precmd"
161.1Slukem
171.1Slukemyppasswdd_precmd()
181.1Slukem{
191.2Slukem	_domain=`domainname`
201.2Slukem	if [ -z "$_domain" ]; then
211.2Slukem		warn "domainname(1) is not set; ${name} not started"
221.1Slukem		return 1
231.1Slukem	fi
241.1Slukem}
251.1Slukem
261.1Slukemrun_rc_command "$1"
27