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 11 name="ypbind" 12 command="/usr/sbin/${name}" 13 start_precmd="ypbind_precmd" 14 15 ypbind_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 24 load_rc_config $name 25 run_rc_command "$1" 26