From owner-freebsd-questions Wed Feb 3 00:35:10 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA23199 for freebsd-questions-outgoing; Wed, 3 Feb 1999 00:35:10 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mta1-rme.xtra.co.nz (mta.xtra.co.nz [203.96.92.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA23181 for ; Wed, 3 Feb 1999 00:35:05 -0800 (PST) (envelope-from junkmale@pop3.xtra.co.nz) Received: from wocker ([210.55.210.87]) by mta1-rme.xtra.co.nz (InterMail v04.00.02.07 201-227-108) with SMTP id <19990203083455.IDNO682101.mta1-rme@wocker> for ; Wed, 3 Feb 1999 21:34:55 +1300 From: "Dan Langille" Organization: The FreeBSD Diary To: freebsd-questions@FreeBSD.ORG Date: Wed, 3 Feb 1999 21:34:54 +1300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: how do I start cvsupd? Reply-to: junkmale@xtra.co.nz X-mailer: Pegasus Mail for Win32 (v3.01d) Message-Id: <19990203083455.IDNO682101.mta1-rme@wocker> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm in the process of starting up a freebsd mirror site. The port appears to have installed correctly. cvsupd was going out and asking for files. It wasn't getting any because it was looking at freefall.freebsd.org and it was not configured for my firewall. So I've modified /usr/local/etc/cvsup/update.sh to include "-P -" to select passive mode. I've also changed /usr/local/etc/cvsup/config.sh to include the following line: host="cvsup.au.FreeBSD.org" My problem is not knowing how to start cvsupd from the command line. /usr/local/etc/rc.d/cvsupd.sh contains: ! /bin/sh if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/cvsupd\.sh\$"); then echo "$0: Cannot determine the PREFIX" >&2 exit 1 fi base=${PREFIX}/etc/cvsup out=/var/tmp/cvsupd.out export PATH=/bin:/usr/bin:${PREFIX}/sbin umask 2 test -x ${PREFIX}/sbin/cvsupd || exit 1 echo -n " cvsupd" cd ${base} || exit . ./config.sh || exit su -m ${user} -c \ "cvsupd -e -C ${maxclients} -l @${facility} -s sup.client" >>${out} 2>&1 But if I run it I get: [root@ns:/usr/local/etc/rc.d] # ./cvsupd.sh ./cvsupd.sh: Cannot determine the PREFIX I'm assuming PREFIX should be /usr/local. But that's as far as I can get. cheers. -- Dan Langille The FreeBSD Diary http://www.FreeBSDDiary.com/freebsd To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message