[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.4 and 1.5

version 1.4, 2000/06/02 22:54:13 version 1.5, 2000/09/19 13:04:39
Line 9 
Line 9 
 . /etc/rc.subr  . /etc/rc.subr
   
 name="ypserv"  name="ypserv"
   rcvar=$name
 command="/usr/sbin/${name}"  command="/usr/sbin/${name}"
 required_vars="rpcbind"  required_vars="rpcbind"
 start_precmd="ypserv_precmd"  start_precmd="ypserv_precmd"
Line 17  ypserv_precmd()
Line 18  ypserv_precmd()
 {  {
         _domain=`domainname`          _domain=`domainname`
         if [ -z "$_domain" ]; then          if [ -z "$_domain" ]; then
                 warn "domainname(1) is not set; ${name} not started"                  warn "domainname(1) is not set."
                 return 1                  return 1
         fi          fi
   
         if [ ! -d /var/yp/$_domain/. ]; then          if [ ! -d /var/yp/$_domain/. ]; then
                 warn "/var/yp/$_domain is not a directory; ${name} not started"                  warn "/var/yp/$_domain is not a directory."
                 return 1                  return 1
         fi          fi
 }  }

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

CVSweb <webmaster@jp.NetBSD.org>