Date: Wed, 3 Feb 1999 21:34:54 +1300 From: "Dan Langille" <junkmale@xtra.co.nz> To: freebsd-questions@FreeBSD.ORG Subject: how do I start cvsupd? Message-ID: <19990203083455.IDNO682101.mta1-rme@wocker>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990203083455.IDNO682101.mta1-rme>
