summaryrefslogtreecommitdiff
path: root/etc/rc.d/ypserv
blob: 162063ea4d832da8ad8ff86f1d13cf0edbb5b833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
#
# $OpenBSD: ypserv,v 1.4 2011/10/06 06:47:50 ajacoutot Exp $

daemon="/usr/sbin/ypserv"

. /etc/rc.d/rc.subr

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

rc_cmd $1