info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple Repositories


From: Mark D. Baushke
Subject: Re: Multiple Repositories
Date: Mon, 27 Nov 2000 01:15:20 -0800

Hi Manish,

I do not know of any implementations of inetd that will read more than
the first entry of the /etc/inetd.conf file for a given port number
(cvspserver).

You probably want to have the equivalent of the following inetd.conf
entry:

cvspserver stream tcp nowait root /usr/local/etc/cvspserver.sh

and have /usr/local/etc/cvspserver.sh have the following text:

#!/bin/sh
/usr/bin/env -i /usr/local/bin/cvs cvs -f \
  --allow-root=/export/home/M7stackrepos \
  --allow-root=/export/home/WOSGrepos  \
  --allow-root=/export/home/SCCPrepos \
  pserver

This allows you to continue to add more repositories without worrying
about the line length limit imposed by the inetd program.

Note: The above assumes that /usr/bin/env exists and that the '-i'
option will remove all but the default environment variables. You may
find that the env executable lives in a different directory and it may
need '-' instead of '-i' to start the new command with an empty
environment. (For example, FreeBSD uses 'env -' and RedHat Linux uses
'env -i'.)

        Enjoy!
        -- Mark

>From: "Manish Koolwal" <address@hidden>
>To: address@hidden
>Subject: Multiple Repositories
>Message-ID: <address@hidden>
>Date: Mon, 27 Nov 2000 13:03:05 +0530
>
>Hi all!
>
>I wish to create seperate repositories for each project. So I have added 
>lines like these in /etc/inetd.conf :
>
>cvspserver stream tcp nowait root /usr/local/bin/cvs cvs 
>--allow-root=/export/home/M7stackrepos pserver
>
>cvspserver stream tcp nowait root /usr/local/bin/cvs cvs 
>--allow-root=/export/home/WOSGrepos pserver
>
>cvspserver stream tcp nowait root /usr/local/bin/cvs cvs 
>--allow-root=/export/home/SCCPrepos pserver
>
>The problem is that I can login only when I specify CVSROOT to be in 
>/export/home/M7stackrepos. Through other paths, I am unable to login. Is it 
>that CVS looks for the line in inetd.conf and reads only the first line it 
>encounters?
>
>Please help me out.
>Thanks and Regards.
>
>    Manish Koolwal



reply via email to

[Prev in Thread] Current Thread [Next in Thread]