Home | History | Annotate | Line # | Download | only in rc.d
yppasswdd revision 1.3
      1 #!/bin/sh
      2 #
      3 # $NetBSD: yppasswdd,v 1.3 2000/05/13 08:45:10 lukem Exp $
      4 #
      5 
      6 # PROVIDE: yppasswdd
      7 # REQUIRE: ypserv ypbind
      8 
      9 . /etc/rc.subr
     10 
     11 name="yppasswdd"
     12 command="/usr/sbin/rpc.${name}"
     13 required_vars="portmap ypserv"
     14 start_precmd="yppasswdd_precmd"
     15 
     16 yppasswdd_precmd()
     17 {
     18 	_domain=`domainname`
     19 	if [ -z "$_domain" ]; then
     20 		warn "domainname(1) is not set; ${name} not started"
     21 		return 1
     22 	fi
     23 }
     24 
     25 load_rc_config $name
     26 run_rc_command "$1"
     27