1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/net/cvsup-mirror/files/cvsupd.sh
John Polstra f08936d579 Direct cvsupd's stdout and stderr into "/var/tmp/cvsupd.out" for
better crash diagnosis.  May it never get tested, ha ha ha.

Eliminate the lite2 and smp releases of the src-sys collection.

Add the new mail-archive collection.

Run cvsup with the "-1" flag to disable automatic retries.  Let cron
take care of that.

State in DESCR that version 15.1 or later of CVSup is required.
1997-07-16 20:59:55 +00:00

19 lines
416 B
Bash

#! /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}" >>${out} 2>&1