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