3 # $FreeBSD: src/etc/rc.d/ypupdated,v 1.4 2003/07/09 03:21:03 mtm Exp $
4 # $DragonFly: src/etc/rc.d/ypupdated,v 1.2 2004/01/27 00:55:43 rob Exp $
8 # REQUIRE: rpcbind ypserv
14 rcvar="rpc_ypupdated_enable"
15 command="/usr/sbin/rpc.${name}"
16 start_precmd="rpc_ypupdated_precmd"
18 rpc_ypupdated_precmd()
20 if ! checkyesno rpcbind_enable && \
21 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
23 force_depend rpcbind || return 1
25 if ! checkyesno nis_server_enable && \
26 ! /etc/rc.d/ypserv forcestatus 1>/dev/null 2>&1
28 force_depend ypserv || return 1
32 if [ -z "$_domain" ]; then
33 warn "NIS domainname(1) is not set."