yppasswdd revision 1.3
11.1Slukem#!/bin/sh
21.1Slukem#
31.3Slukem# $NetBSD: yppasswdd,v 1.3 2000/05/13 08:45:10 lukem Exp $
41.1Slukem#
51.1Slukem
61.1Slukem# PROVIDE: yppasswdd
71.1Slukem# REQUIRE: ypserv ypbind
81.1Slukem
91.1Slukem. /etc/rc.subr
101.1Slukem
111.1Slukemname="yppasswdd"
121.1Slukemcommand="/usr/sbin/rpc.${name}"
131.1Slukemrequired_vars="portmap ypserv"
141.1Slukemstart_precmd="yppasswdd_precmd"
151.1Slukem
161.1Slukemyppasswdd_precmd()
171.1Slukem{
181.2Slukem	_domain=`domainname`
191.2Slukem	if [ -z "$_domain" ]; then
201.2Slukem		warn "domainname(1) is not set; ${name} not started"
211.1Slukem		return 1
221.1Slukem	fi
231.1Slukem}
241.1Slukem
251.3Slukemload_rc_config $name
261.1Slukemrun_rc_command "$1"
27