#!/bin/sh
#
# $OpenBSD: ypserv,v 1.3 2011/07/08 02:15:34 robert Exp $

daemon="/usr/sbin/ypserv"

. /etc/rc.d/rc.subr

rc_reload=NO

rc_pre() {
	[ X"`domainname`" != X"" -a -d /var/yp/`domainname` ]
}

rc_cmd $1
