[BACK]Return to ypserv CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc / rc.d

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/etc/rc.d/ypserv between version 1.2 and 1.9

version 1.2, 2000/03/16 22:22:15 version 1.9, 2005/04/01 23:25:29
Line 4 
Line 4 
 #  #
   
 # PROVIDE: ypserv  # PROVIDE: ypserv
 # REQUIRE: portmap  # REQUIRE: rpcbind
   
 . /etc/rc.subr  $_rc_subr_loaded . /etc/rc.subr
 . /etc/rc.conf  
   
 name="ypserv"  name="ypserv"
   rcvar=$name
 command="/usr/sbin/${name}"  command="/usr/sbin/${name}"
 required_vars="portmap"  required_vars="rpcbind"
 start_precmd="ypserv_precmd"  start_precmd="ypserv_precmd"
   
 ypserv_precmd()  ypserv_precmd()
 {  {
         _domain=`domainname`          if [ ! -d /var/yp/. ]; then
         if [ -z "$_domain" ]; then                  warn "/var/yp is not a directory."
                 warn "domainname(1) is not set; ${name} not started"  
                 return 1  
         fi  
   
         if [ ! -d /var/yp/$_domain/. ]; then  
                 warn "/var/yp/$_domain is not a directory; ${name} not started"  
                 return 1                  return 1
         fi          fi
 }  }
   
   load_rc_config $name
   load_rc_config_var rpcbind rpcbind
 run_rc_command "$1"  run_rc_command "$1"

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.9

CVSweb <webmaster@jp.NetBSD.org>