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