summaryrefslogtreecommitdiff
path: root/etc/rc.d/ypserv
blob: 803ac50f23b1eb50813a58701680b3926071901b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/ksh
#
# $OpenBSD: ypserv,v 1.6 2018/01/11 21:09:26 rpe Exp $

daemon="/usr/sbin/ypserv"

. /etc/rc.d/rc.subr

rc_pre() {
	[[ -n $(domainname) && -d /var/yp/$(domainname) ]]
}

rc_cmd $1