Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2001 10:54:44 -0800 (PST)
From:      Hendrik Scholz <hendrik@scholz.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/32337: cvsup-mirror doesn't set correct -C paremeter in init script
Message-ID:  <200111271854.fARIsim78321@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         32337
>Category:       ports
>Synopsis:       cvsup-mirror doesn't set correct -C paremeter in init script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 27 11:00:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Hendrik Scholz
>Release:        4.4-STABLE
>Organization:
NetUSE AG
>Environment:
FreeBSD donkey.lan.raisdorf.net 4.4-STABLE FreeBSD 4.4-STABLE #4: Wed Oct 24 17:34:47 CEST 2001     hscholz@donkey.lan.raisdorf.net:/usr/src/sys/compile/DONKEY  i386

>Description:
The cvsup-mirror port asks for a maximum number of parallel connections to the server. This value is saved in /usr/local/etc/cvsup/config.sh
When starting the cvsupd via /usr/local/etc/rc.d/cvsupd.sh the config
file gets sourced but the maxclients value is not honoured.

>How-To-Repeat:
Install the port and start the daemon.
$ psauxww| grep cvsup

cvsup   54576  0.0  0.5  3120 1372  ??  Is   Mon10AM   0:00.07 cvsupd -e -C 100 -l @daemon -b /usr/local/etc/cvsup -s sup.client

You can see the -C 100 part but maxclients was set to 16 in my setup.

>Fix:
--- cvsupd.sh.orig	Tue Nov 27 19:58:28 2001
+++ cvsupd.sh	Tue Nov 27 19:58:41 2001
@@ -20,7 +20,7 @@
 case $arg in
 start)
     su -f -m ${user} -c \
-	"cvsupd -e -C 100 -l @${facility} -b ${base} -s sup.client" \
+	"cvsupd -e -C ${maxclients} -l @${facility} -b ${base} -s sup.client" \
 	>>${out} 2>&1;;
 
 stop)

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111271854.fARIsim78321>