summaryrefslogtreecommitdiff
path: root/etc/rc.d/ypserv
blob: 3a94c5f6219588d301b3f4c9dc942737e0df24d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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