I point inetd.conf at a script:

#!/bin/sh
/usr/bin/cvs \
  `ls -d /cm/vault/* \
   | sed '1,$s/.*/--allow-root=&/'` \
  pserver

I have my repositories in /cm/vault.

Gary Young


Gary Pinkham wrote:
> 
> I put
> 
> #!/bin/sh
> /bin/cvs cvs --allow-root=/usr/local/cvs1 --allow-root=/usr/local/cvs2
> --allow-root=/usr/local/cvs3 --allow-root=/usr/local/cvs4 pserver
> 
> into cvs.sh
> 
> then I added
> 
> cvsserve  stream tcp nowait root /etc/inet/cvs.sh
> 
> into inetd.conf...
> 
> when I try to do a cvs login
> I get the following
> "cvs [login aborted]: unrecognized auth response from ape: CVS commands are:"
> 
> If I execute the cvs.sh from the command prompt I get the "CVS commands are:
> blah blah blah"..    SO I was figuring that I needed to code the line different
> in the script then I would in the inetd.conf file...   I have no idea!!!!
> 
> GaRy....
> 
> Dave Sherohman wrote:
> >
> > On Wed, Apr 12, 2000 at 11:20:50AM -0400, Gary Pinkham wrote:
> > > Could someone point me in the right direction for setting up a shell script for
> > > inetd to call since I have 4 repositories and can only fit three in inetd...   I
> > > basically did /bin/cvs cvs --allow-root/usr/local/cvsroot (blah blah blah)
> > > pserver...     But this does not work...  So I'm guessing that I'm supposed to
> > > have some other command....
> >
> > Your problem is simply that inetd doesn't like commands longer than 30
> > characters.  All you need to do is put your '/bin/cvs cvs
> > --allow-root/usr/local/cvsroot (blah blah blah)' command into a shell script
> > and call the script from inetd.
> >
> > --
> > The Shortest Windows Manual:  "Turn off the power switch."
> > Geek Code 3.1:  GCS d- s+: a- C++ UL++$ P+>+++ L++>++++ E- W--(++) N+ o+ !K
> > w---$ O M- !V PS+ PE Y+ PGP t 5++ X+ R++ tv- b++ DI++++ D G e* h+ r++ y+
> 
> --
> Gary Pinkham
> Reasoning, Inc.                         Voice: 781-359-3132
> One New England Executive Park          Fax:   781-229-2770
> Burlington, MA 01803                    Email: [EMAIL PROTECTED]
begin:vcard 
n:Young;Gary
x-mozilla-html:FALSE
org:Motorola SPS IT
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Motorola Piedmont Office - Cube 41D=0D=0A9801 South 51st Street;Phoenix;AZ;85044;USA
x-mozilla-cpt:;0
tel;work:480-383-5411
fn:Gary Young
end:vcard

Reply via email to