3 # $FreeBSD: src/etc/rc.d/ypxfrd,v 1.5 2003/07/09 03:21:03 mtm Exp $
4 # $DragonFly: src/etc/rc.d/ypxfrd,v 1.3 2005/11/19 21:47:32 swildner Exp $
13 rcvar
="nis_ypxfrd_enable"
14 command="/usr/sbin/rpc.${name}"
15 start_precmd
="ypxfrd_precmd"
17 command_args
="${nis_ypxfrd_flags}"
21 if ! checkyesno rpcbind_enable
&& \
22 ! /etc
/rc.d
/rpcbind forcestatus
1>/dev
/null
2>&1
24 force_depend rpcbind ||
return 1
26 if ! checkyesno nis_server_enable
&& \
27 ! /etc
/rc.d
/ypserv forcestatus
1>/dev
/null
2>&1
29 force_depend ypserv ||
return 1
33 if [ -z "$_domain" ]; then
34 warn
"NIS domainname(1) is not set."