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