[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.1 and 1.2

version 1.1, 2000/03/10 11:53:25 version 1.2, 2000/03/16 22:22:15
Line 16  start_precmd="ypserv_precmd"
Line 16  start_precmd="ypserv_precmd"
   
 ypserv_precmd()  ypserv_precmd()
 {  {
         if [ -z "$domainname" ]; then          _domain=`domainname`
                 warn "\$domainname is not set; ${name} not started"          if [ -z "$_domain" ]; then
                   warn "domainname(1) is not set; ${name} not started"
                 return 1                  return 1
         fi          fi
   
         if [ ! -d /var/yp/$domainname/. ]; then          if [ ! -d /var/yp/$_domain/. ]; then
                 warn "/var/yp/$domainname is not a directory; ${name} not started"                  warn "/var/yp/$_domain is not a directory; ${name} not started"
                 return 1                  return 1
         fi          fi
 }  }

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

CVSweb <webmaster@jp.NetBSD.org>