[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.5 and 1.9

version 1.5, 2000/09/19 13:04:39 version 1.9, 2005/04/01 23:25:29
Line 6 
Line 6 
 # PROVIDE: ypserv  # PROVIDE: ypserv
 # REQUIRE: rpcbind  # REQUIRE: rpcbind
   
 . /etc/rc.subr  $_rc_subr_loaded . /etc/rc.subr
   
 name="ypserv"  name="ypserv"
 rcvar=$name  rcvar=$name
Line 16  start_precmd="ypserv_precmd"
Line 16  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."  
                 return 1  
         fi  
   
         if [ ! -d /var/yp/$_domain/. ]; then  
                 warn "/var/yp/$_domain is not a directory."  
                 return 1                  return 1
         fi          fi
 }  }
   
 load_rc_config $name  load_rc_config $name
   load_rc_config_var rpcbind rpcbind
 run_rc_command "$1"  run_rc_command "$1"

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

CVSweb <webmaster@jp.NetBSD.org>