Since this is kinda hard to figure out if you're not a UNIX Sysadmin,
here's exactly how we do it on Solaris:

>From the /etc/inet/inetd.conf file:

[85]$ grep startcvs /etc/inet/inetd.conf
# NOTE: modify /etc/inet/startcvs to add or remove repositories
cvspserver    stream  tcp     nowait root /etc/inet/startcvs cvspserver

Notice that we call a script, "startcvs" instead of CVS directly.  The
startcvs script is a bourne-shell script that starts up 19 repositories:

[86]$ cat /etc/inet/startcvs
#!/bin/sh

exec /usr/cvs/bin/cvs \
  --allow-root=/devl/xcs/repo \
  --allow-root=/export/vol2/xcs/test_repo \
  --allow-root=/export/vol2/xcs/play_repo \
  --allow-root=/home/xcsman/briana/test_repo \
  --allow-root=/home/xcsman/chewitt/test_repo \
  --allow-root=/home/xcsman/davet/test_repo \
  --allow-root=/home/xcsman/durrett/test_repo \
  --allow-root=/home/xcsman/emil/test_repo \
  --allow-root=/home/xcsman/gbunker/test_repo \
  --allow-root=/home/xcsman/jerry/test_repo \
  --allow-root=/home/xcsman/jlu/test_repo \
  --allow-root=/home/xcsman/lclark/test_repo \
  --allow-root=/home/xcsman/lou/test_repo \
  --allow-root=/home/xcsman/marko/test_repo \
  --allow-root=/home/xcsman/mason/test_repo \
  --allow-root=/home/xcsman/mick/test_repo \
  --allow-root=/home/xcsman/rosty/test_repo \
  --allow-root=/home/xcsman/stampes/test_repo \
  --allow-root=/home/xcsman/usman/test_repo \
  pserver

If you modify startcvs to add or remove repositories, you need to
restart the inet daemon to make your changes take effect.  To do so, run
the following command:

$ kill -HUP <inet_daemon_process_id>

You can get the inet daemon process ID by running:

$ ps -ef | grep inetd

If you're running something other than Solaris, adjust the ps options
accordingly.

-- Lynn

Gerhard Sittig wrote:

> On Sun, Jul 09, 2000 at 18:44 -0700, BERTS wrote:
> > I am trying to set up three different repositories on our
> > development server using pserver as the authentication
> > protocol. We have managed to get two repositories up and
> > running but after we added in the third one, CVS refused to
> > connect to all three repositories. It returned a "Rejected
> > access" error msg which did not happen if there are only two
> > repositories.
>
> It's become a FAQ.  Check your local inetd doc for hard limits (I
> guess it's the parameter count).  Collect the trees under one
> root or start a script from inetd and exec arbitrary length
> commands from there -- or replace your inetd with something more
> capable.  You can choose whatever you like.
>
> virtually yours   82D1 9B9C 01DC 4FB4 D7B4  61BE 3F49 4F77 72DE DA76
> Gerhard Sittig   true | mail -s "get gpg key" [EMAIL PROTECTED]
> --
>      If you don't understand or are scared by any of the above
>              ask your parents or an adult to help you.

Reply via email to