3 # $NetBSD: yppasswdd,v 1.6 2002/03/22 04:34:01 thorpej Exp $
4 # $FreeBSD: src/etc/rc.d/yppasswdd,v 1.7 2003/07/09 03:21:03 mtm Exp $
5 # $DragonFly: src/etc/rc.d/yppasswdd,v 1.3 2004/01/27 00:55:43 rob Exp $
9 # REQUIRE: ypserv ypbind
16 command="/usr/sbin/rpc.${name}"
17 start_precmd
="yppasswdd_precmd"
20 rcvar
="nis_yppasswdd_enable"
21 command_args
="${nis_yppasswdd_flags}"
25 if ! checkyesno rpcbind_enable
&& \
26 ! /etc
/rc.d
/rpcbind forcestatus
1>/dev
/null
2>&1
28 force_depend rpcbind ||
return 1
30 if ! checkyesno nis_server_enable
&& \
31 ! /etc
/rc.d
/ypserv forcestatus
1>/dev
/null
2>&1
33 force_depend ypserv ||
return 1
36 if [ -z "$_domain" ]; then
37 warn
"NIS domainname(1) is not set."