summaryrefslogtreecommitdiff
path: root/etc/rc.d/ypbind
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/ypbind')
-rw-r--r--etc/rc.d/ypbind17
1 files changed, 17 insertions, 0 deletions
diff --git a/etc/rc.d/ypbind b/etc/rc.d/ypbind
new file mode 100644
index 00000000000..fb72f0b4e4e
--- /dev/null
+++ b/etc/rc.d/ypbind
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# $OpenBSD: ypbind,v 1.1 2011/07/07 01:52:58 robert Exp $
+
+daemon="/usr/sbin/ypbind"
+
+. /etc/rc.d/rc.subr
+
+rc_bg=YES
+rc_reload=NO
+
+rc_pre() {
+ [ X`domainname` != X"" -a -d /var/yp/binding ] || \
+ return 1
+}
+
+rc_cmd $1