Home | History | Annotate | Line # | Download | only in rc.d
yppasswdd revision 1.2
      1 #!/bin/sh
      2 #
      3 # $NetBSD: yppasswdd,v 1.2 2000/03/16 22:22:15 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 	_domain=`domainname`
     20 	if [ -z "$_domain" ]; then
     21 		warn "domainname(1) is not set; ${name} not started"
     22 		return 1
     23 	fi
     24 }
     25 
     26 run_rc_command "$1"
     27