1 #!/bin/sh 2 # 3 # $NetBSD: yppasswdd,v 1.6 2002/03/22 04:34:01 thorpej Exp $ 4 # 5 6 # PROVIDE: yppasswdd 7 # REQUIRE: ypserv ypbind 8 # BEFORE: LOGIN 9 10 . /etc/rc.subr 11 12 name="yppasswdd" 13 rcvar=$name 14 command="/usr/sbin/rpc.${name}" 15 required_vars="rpcbind ypserv" 16 start_precmd="yppasswdd_precmd" 17 18 yppasswdd_precmd() 19 { 20 _domain=`domainname` 21 if [ -z "$_domain" ]; then 22 warn "domainname(1) is not set." 23 return 1 24 fi 25 } 26 27 load_rc_config $name 28 run_rc_command "$1" 29