[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: Adduser program in C
From:       Ollivier Robert <roberto () keltia ! freenix ! fr>
Date:       1996-05-30 18:33:04
[Download RAW message or body]

It seems that John Capo said:
> > 1. domainname returns a non-void value AND
> > 2. /var/yp/DOMAINNAME exists AND
> > 3. ypserv is running 
> > 
> > THEN YP is running and we're on the master ? 
> 
> No, you could be on a slave server.  I'm not sure how to tell the
> difference.

rpc.yppasswdd then ? 

# Start ypserv if we're an NIS server.
# Run yppasswdd only on the NIS master server
if [ "X${nis_serverflags}" != X"NO" ]; then
        echo -n ' ypserv'; ypserv ${nis_serverflags}

        if [ "X${yppasswddflags}" != X"NO" ]; then
                echo -n ' yppasswdd'; rpc.yppasswdd ${yppasswddflags}
        fi
fi

-- 
Ollivier ROBERT    -=- The daemon is FREE! -=-    roberto@keltia.freenix.fr
FreeBSD keltia.freenix.fr 2.2-CURRENT #4: Sun May 26 14:34:02 MET DST 1996

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic