ypbind revision 1.3
1#!/bin/sh 2# 3# $NetBSD: ypbind,v 1.3 2000/05/13 08:45:10 lukem Exp $ 4# 5 6# PROVIDE: ypbind 7# REQUIRE: ypserv 8 9. /etc/rc.subr 10 11name="ypbind" 12command="/usr/sbin/${name}" 13start_precmd="ypbind_precmd" 14 15ypbind_precmd() 16{ 17 _domain=`domainname` 18 if [ -z "$_domain" ]; then 19 warn "domainname(1) is not set; ${name} not started" 20 return 1 21 fi 22} 23 24load_rc_config $name 25run_rc_command "$1" 26