3 # $NetBSD: ypserv,v 1.5 2000/09/19 13:04:39 lukem Exp $
4 # $FreeBSD: src/etc/rc.d/ypserv,v 1.7 2003/07/09 03:21:03 mtm Exp $
5 # $DragonFly: src/etc/rc.d/ypserv,v 1.5 2005/11/19 21:47:32 swildner Exp $
14 command="/usr/sbin/${name}"
15 start_precmd
="ypserv_precmd"
18 rcvar
="nis_server_enable"
19 command_args
="${nis_server_flags}"
23 if ! checkyesno rpcbind_enable
&& \
24 ! /etc
/rc.d
/rpcbind forcestatus
1>/dev
/null
2>&1
26 force_depend rpcbind ||
return 1
29 if [ -z "$_domain" ]; then
30 warn
"NIS domainname(1) is not set."
34 if [ ! -d /var
/yp
/$_domain/.
]; then
35 warn
"/var/yp/$_domain is not a directory."