diff options
Diffstat (limited to 'etc/rc.d/ypserv')
-rw-r--r-- | etc/rc.d/ypserv | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/rc.d/ypserv b/etc/rc.d/ypserv new file mode 100644 index 00000000000..199cd610bb5 --- /dev/null +++ b/etc/rc.d/ypserv @@ -0,0 +1,16 @@ +#!/bin/sh +# +# $OpenBSD: ypserv,v 1.1 2011/07/07 01:52:58 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 |