7 # REQUIRE: rpcbind ypserv
13 rcvar="rpc_ypupdated_enable"
14 command="/usr/sbin/rpc.${name}"
15 start_precmd="rpc_ypupdated_precmd"
17 rpc_ypupdated_precmd()
19 if ! checkyesno rpcbind_enable && \
20 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
22 force_depend rpcbind || return 1
24 if ! checkyesno nis_server_enable && \
25 ! /etc/rc.d/ypserv forcestatus 1>/dev/null 2>&1
27 force_depend ypserv || return 1
31 if [ -z "$_domain" ]; then
32 warn "NIS domainname(1) is not set."