3 # $FreeBSD: src/etc/rc.d/ypset,v 1.5 2003/07/09 03:21:03 mtm Exp $
4 # $DragonFly: src/etc/rc.d/ypset,v 1.2 2004/01/27 00:55:43 rob Exp $
14 rcvar="nis_ypset_enable"
15 command="/usr/sbin/${name}"
16 start_precmd="ypset_precmd"
18 command_args="${nis_ypset_flags}"
22 if ! checkyesno rpcbind_enable && \
23 ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1
25 force_depend rpcbind || return 1
27 if ! checkyesno nis_client_enable && \
28 ! /etc/rc.d/ypbind forcestatus 1>/dev/null 2>&1
30 force_depend ypbind || return 1
34 if [ -z "$_domain" ]; then
35 warn "NIS domainname(1) is not set."