summaryrefslogtreecommitdiff
path: root/etc/rc.d/ypserv
blob: 6c189e036bfc56ba535b8475beec40fdf7ddb99f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# $OpenBSD: ypserv,v 1.2 2011/07/07 18:23:17 robert Exp $

daemon="/usr/sbin/ypserv"

. /etc/rc.d/rc.subr

rc_reload=NO

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

rc_cmd $1